123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354 |
- --- a/configure
- +++ b/configure
- @@ -14507,8 +14507,7 @@
- cat confdefs.h - <<_ACEOF >conftest.$ac_ext
- /* end confdefs.h. */
-
- -#include <asm-generic/mman.h>
- -#include <asm-generic/mman-common.h>
- +#include <asm/mman.h>
-
- int
- main ()
- --- a/include/linux.h
- +++ b/include/linux.h
- @@ -327,12 +327,4 @@
- #define HAVE_GETFSMAP
- #endif /* HAVE_GETFSMAP */
-
- -#ifndef HAVE_MAP_SYNC
- -#define MAP_SYNC 0
- -#define MAP_SHARED_VALIDATE 0
- -#else
- -#include <asm-generic/mman.h>
- -#include <asm-generic/mman-common.h>
- -#endif /* HAVE_MAP_SYNC */
- -
- #endif /* __XFS_LINUX_H__ */
- --- a/io/mmap.c
- +++ b/io/mmap.c
- @@ -23,6 +23,11 @@
- #include "init.h"
- #include "io.h"
-
- +#ifndef HAVE_MAP_SYNC
- +#define MAP_SYNC 0
- +#define MAP_SHARED_VALIDATE 0
- +#endif
- +
- static cmdinfo_t mmap_cmd;
- static cmdinfo_t mread_cmd;
- static cmdinfo_t msync_cmd;
- --- a/m4/package_libcdev.m4
- +++ b/m4/package_libcdev.m4
- @@ -335,8 +335,7 @@
- AC_DEFUN([AC_HAVE_MAP_SYNC],
- [ AC_MSG_CHECKING([for MAP_SYNC])
- AC_TRY_COMPILE([
- -#include <asm-generic/mman.h>
- -#include <asm-generic/mman-common.h>
- +#include <asm/mman.h>
- ], [
- int flags = MAP_SYNC | MAP_SHARED_VALIDATE;
- ], have_map_sync=yes
|