summaryrefslogtreecommitdiff
path: root/source4
diff options
context:
space:
mode:
Diffstat (limited to 'source4')
-rw-r--r--source4/lib/replace/libreplace.m42
-rw-r--r--source4/lib/replace/system/filesys.h4
2 files changed, 5 insertions, 1 deletions
diff --git a/source4/lib/replace/libreplace.m4 b/source4/lib/replace/libreplace.m4
index fa00f2c1c4..f06d7f83dc 100644
--- a/source4/lib/replace/libreplace.m4
+++ b/source4/lib/replace/libreplace.m4
@@ -99,7 +99,7 @@ AC_CHECK_HEADERS(stdarg.h vararg.h)
AC_CHECK_HEADERS(sys/socket.h netinet/in.h netdb.h arpa/inet.h)
AC_CHECK_HEADERS(netinet/ip.h netinet/tcp.h netinet/in_systm.h netinet/in_ip.h)
AC_CHECK_HEADERS(sys/sockio.h sys/un.h)
-
+AC_CHECK_HEADERS(sys/mount.h mntent.h)
dnl we need to check that net/if.h really can be used, to cope with hpux
dnl where including it always fails
diff --git a/source4/lib/replace/system/filesys.h b/source4/lib/replace/system/filesys.h
index a1a0412f37..b3c339a144 100644
--- a/source4/lib/replace/system/filesys.h
+++ b/source4/lib/replace/system/filesys.h
@@ -38,6 +38,10 @@
#include <sys/mount.h>
#endif
+#ifdef HAVE_MNTENT_H
+#include <mntent.h>
+#endif
+
#ifdef HAVE_SYS_VFS_H
#include <sys/vfs.h>
#endif