summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorAndrew Tridgell <tridge@samba.org>1998-12-17 01:01:24 +0000
committerAndrew Tridgell <tridge@samba.org>1998-12-17 01:01:24 +0000
commit2d3cd6d52b07e256357285dfdaa1c57fd26fde97 (patch)
treeead30295bf7e18da99a9c1c41a5da0e7a4747a7a
parent478a670105496a140740c6960a7867785cd97ecf (diff)
downloadsamba-2d3cd6d52b07e256357285dfdaa1c57fd26fde97.tar.gz
samba-2d3cd6d52b07e256357285dfdaa1c57fd26fde97.tar.xz
samba-2d3cd6d52b07e256357285dfdaa1c57fd26fde97.zip
make sure we include sys/mman.h if available
-rwxr-xr-xsource/configure2
-rw-r--r--source/configure.in2
-rw-r--r--source/include/config.h.in3
-rw-r--r--source/include/includes.h2
4 files changed, 6 insertions, 3 deletions
diff --git a/source/configure b/source/configure
index a8a5814a5d1..7b871a23cdf 100755
--- a/source/configure
+++ b/source/configure
@@ -1684,7 +1684,7 @@ else
fi
done
-for ac_hdr in sys/wait.h sys/resource.h sys/ioctl.h sys/mode.h
+for ac_hdr in sys/wait.h sys/resource.h sys/ioctl.h sys/mode.h sys/mman.h
do
ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
diff --git a/source/configure.in b/source/configure.in
index 20e2833dae9..5dc298a0dd4 100644
--- a/source/configure.in
+++ b/source/configure.in
@@ -100,7 +100,7 @@ AC_HEADER_SYS_WAIT
AC_CHECK_HEADERS(sys/fcntl.h sys/select.h fcntl.h sys/time.h sys/unistd.h)
AC_CHECK_HEADERS(unistd.h utime.h grp.h sys/id.h limits.h memory.h net/if.h)
AC_CHECK_HEADERS(compat.h rpc/rpc.h rpcsvc/yp_prot.h rpcsvc/ypclnt.h sys/param.h ctype.h )
-AC_CHECK_HEADERS(sys/wait.h sys/resource.h sys/ioctl.h sys/mode.h)
+AC_CHECK_HEADERS(sys/wait.h sys/resource.h sys/ioctl.h sys/mode.h sys/mman.h)
AC_CHECK_HEADERS(sys/filio.h string.h strings.h stdlib.h sys/socket.h)
AC_CHECK_HEADERS(sys/mount.h sys/vfs.h sys/fs/s5param.h sys/filsys.h termios.h)
AC_CHECK_HEADERS(sys/statfs.h sys/dustat.h sys/statvfs.h stdarg.h sys/sockio.h)
diff --git a/source/include/config.h.in b/source/include/config.h.in
index 39c655e18a0..7b40cea96a4 100644
--- a/source/include/config.h.in
+++ b/source/include/config.h.in
@@ -741,6 +741,9 @@
/* Define if you have the <sys/ioctl.h> header file. */
#undef HAVE_SYS_IOCTL_H
+/* Define if you have the <sys/mman.h> header file. */
+#undef HAVE_SYS_MMAN_H
+
/* Define if you have the <sys/mode.h> header file. */
#undef HAVE_SYS_MODE_H
diff --git a/source/include/includes.h b/source/include/includes.h
index 6ee4a915dfe..ab85edec95e 100644
--- a/source/include/includes.h
+++ b/source/include/includes.h
@@ -227,7 +227,7 @@
# endif
#endif
-#ifdef HAVE_SHARED_MMAP
+#ifdef HAVE_SYS_MMAN_H
#include <sys/mman.h>
#endif