summaryrefslogtreecommitdiff
path: root/source3/include
diff options
context:
space:
mode:
authorTim Potter <tpot@samba.org>2003-10-21 04:08:32 +0000
committerTim Potter <tpot@samba.org>2003-10-21 04:08:32 +0000
commit4c0d641475a9e9ff4048c96a18bc38265780c33e (patch)
treebf0a9f6918dc951757b6dea01e25eae95194cfa9 /source3/include
parentcc88a03cd061d9f89ed3d407b642f2d733e55e85 (diff)
downloadsamba-4c0d641475a9e9ff4048c96a18bc38265780c33e.tar.gz
samba-4c0d641475a9e9ff4048c96a18bc38265780c33e.tar.bz2
samba-4c0d641475a9e9ff4048c96a18bc38265780c33e.zip
If we have blacklisted mmap() try to avoid using it accidentally by
undefining the HAVE_MMAP symbol. (This used to be commit c420195231457d3202157490f4bec335a788d8b4)
Diffstat (limited to 'source3/include')
-rw-r--r--source3/include/includes.h7
1 files changed, 7 insertions, 0 deletions
diff --git a/source3/include/includes.h b/source3/include/includes.h
index 29bb53980f..2a82098fa9 100644
--- a/source3/include/includes.h
+++ b/source3/include/includes.h
@@ -1315,4 +1315,11 @@ BOOL get_krb5_smb_session_key(krb5_context context, krb5_auth_context auth_conte
#endif
#define FALSE __ERROR__XX__DONT_USE_FALSE
+/* If we have blacklisted mmap() try to avoid using it accidentally by
+ undefining the HAVE_MMAP symbol. */
+
+#ifdef MMAP_BLACKLIST
+#undef HAVE_MMAP
+#endif
+
#endif /* _INCLUDES_H */