# Useful functions which we can do without.
AC_CHECK_FUNCS([futimens utimensat flock mempcpy \
- openat fstatat readlinkat fdopendir])
+ openat fstatat readlinkat fdopendir posix_fallocate \
+ llistxattr lgetxattr fsetxattr])
# Header checks, most of which are only here to satisfy conditional includes
# made by the libntfs-3g headers.
sys/byteorder.h \
sys/endian.h \
sys/file.h \
+ sys/syscall.h \
sys/sysctl.h \
sys/times.h \
sys/xattr.h \
[],
[#include <sys/stat.h>])
+# Check for possible support for the Linux getrandom() system call
+AC_CHECK_DECL([__NR_getrandom],
+ [AC_DEFINE([HAVE_NR_GETRANDOM], [1], [Define to 1 if the system
+ headers define a system call number for getrandom()])],
+ [],
+ [#include <sys/syscall.h>])
+
###############################################################################
# Required libraries #
###############################################################################