summaryrefslogtreecommitdiff
path: root/lib/replace/system
diff options
context:
space:
mode:
Diffstat (limited to 'lib/replace/system')
-rw-r--r--lib/replace/system/config.m42
-rw-r--r--lib/replace/system/filesys.h2
2 files changed, 3 insertions, 1 deletions
diff --git a/lib/replace/system/config.m4 b/lib/replace/system/config.m4
index 39c2f58283..b8568a5165 100644
--- a/lib/replace/system/config.m4
+++ b/lib/replace/system/config.m4
@@ -1,7 +1,7 @@
# filesys
AC_HEADER_DIRENT
AC_CHECK_HEADERS(fcntl.h sys/fcntl.h sys/resource.h sys/ioctl.h sys/mode.h sys/filio.h sys/fs/s5param.h sys/filsys.h)
-AC_CHECK_HEADERS(sys/acl.h acl/libacl.h)
+AC_CHECK_HEADERS(sys/acl.h acl/libacl.h sys/file.h)
# select
AC_CHECK_HEADERS(sys/select.h)
diff --git a/lib/replace/system/filesys.h b/lib/replace/system/filesys.h
index 22e3d23f3e..6cf2dd287a 100644
--- a/lib/replace/system/filesys.h
+++ b/lib/replace/system/filesys.h
@@ -77,7 +77,9 @@
#include <sys/filio.h>
#endif
+#ifdef HAVE_SYS_FILE_H
#include <sys/file.h>
+#endif
#ifdef HAVE_FCNTL_H
#include <fcntl.h>