summaryrefslogtreecommitdiffstats
path: root/source/include
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 /source/include
parent478a670105496a140740c6960a7867785cd97ecf (diff)
downloadsamba-2d3cd6d52b07e256357285dfdaa1c57fd26fde97.tar.gz
samba-2d3cd6d52b07e256357285dfdaa1c57fd26fde97.tar.xz
samba-2d3cd6d52b07e256357285dfdaa1c57fd26fde97.zip
make sure we include sys/mman.h if available
Diffstat (limited to 'source/include')
-rw-r--r--source/include/config.h.in3
-rw-r--r--source/include/includes.h2
2 files changed, 4 insertions, 1 deletions
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