mirror of
https://github.com/nilfs-dev/nilfs-utils.git
synced 2026-01-26 13:43:15 +00:00
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 <konishi.ryusuke@lab.ntt.co.jp>
This commit is contained in:
parent
823f4234c0
commit
98dd99c388
@ -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=''
|
||||
|
||||
@ -54,9 +54,9 @@
|
||||
#include <limits.h>
|
||||
#endif /* HAVE_LIMITS_H */
|
||||
|
||||
#if HAVE_MMAP
|
||||
#if HAVE_SYS_MMAN_H
|
||||
#include <sys/mman.h>
|
||||
#endif /* HAVE_MMAP */
|
||||
#endif /* HAVE_SYS_MMAN_H */
|
||||
|
||||
#if HAVE_TIME_H
|
||||
#include <time.h>
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user