From 98dd99c38811a3bb5c77880c3e769efe943eb56f Mon Sep 17 00:00:00 2001 From: Ryusuke Konishi Date: Wed, 21 Sep 2016 07:00:56 +0900 Subject: [PATCH] configure.ac: check for sys/mman.h header file Include "sys/mman.h" header file in the list of the AC_CHECK_HEADERS macro to make sure the existence, and use HAVE_SYS_MMAN_H macro instead of HAVE_MMAP for the test whether to include the header file. Signed-off-by: Ryusuke Konishi --- configure.ac | 4 ++-- lib/nilfs.c | 4 ++-- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/configure.ac b/configure.ac index 8cbcfb3..3d61120 100644 --- a/configure.ac +++ b/configure.ac @@ -90,8 +90,8 @@ AC_HEADER_SYS_WAIT AC_CHECK_HEADERS([ctype.h err.h fcntl.h grp.h libintl.h limits.h \ linux/magic.h linux/types.h locale.h mntent.h mqueue.h \ paths.h poll.h pwd.h semaphore.h stdint.h stdlib.h string.h \ - strings.h sys/ioctl.h sys/mount.h sys/time.h syslog.h \ - time.h unistd.h]) + strings.h sys/ioctl.h sys/mman.h sys/mount.h sys/time.h \ + syslog.h time.h unistd.h]) # Check /etc/mtab mtab_type='' diff --git a/lib/nilfs.c b/lib/nilfs.c index 7bb5461..906db10 100644 --- a/lib/nilfs.c +++ b/lib/nilfs.c @@ -54,9 +54,9 @@ #include #endif /* HAVE_LIMITS_H */ -#if HAVE_MMAP +#if HAVE_SYS_MMAN_H #include -#endif /* HAVE_MMAP */ +#endif /* HAVE_SYS_MMAN_H */ #if HAVE_TIME_H #include