summaryrefslogtreecommitdiff
path: root/source4
diff options
context:
space:
mode:
authorAndrew Tridgell <tridge@samba.org>2007-05-30 08:14:59 +0000
committerGerald (Jerry) Carter <jerry@samba.org>2007-10-10 14:53:05 -0500
commit9c6c4848c941971f186a2cbcefcd07e5a1a55544 (patch)
tree9d42064687ba89add823dad83ab45d43b83eaefe /source4
parente6aecd8b91cb9811bac2b3e2a47a9a09116b09b7 (diff)
downloadsamba-9c6c4848c941971f186a2cbcefcd07e5a1a55544.tar.gz
samba-9c6c4848c941971f186a2cbcefcd07e5a1a55544.tar.bz2
samba-9c6c4848c941971f186a2cbcefcd07e5a1a55544.zip
r23237: update lib/replace from ctdb
(This used to be commit 361c5995bcf1dafb89f935ac4183dc295e1d524d)
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