If we have blacklisted mmap() try to avoid using it accidentally by
authorTim Potter <tpot@samba.org>
Tue, 21 Oct 2003 04:08:32 +0000 (04:08 +0000)
committerTim Potter <tpot@samba.org>
Tue, 21 Oct 2003 04:08:32 +0000 (04:08 +0000)
undefining the HAVE_MMAP symbol.

source/include/includes.h

index 29bb53980fe0c6dd0d532aaa17c87f1c870f2c2c..2a82098fa9cbfb06a75e6bd793d2b9a0978d75d0 100644 (file)
@@ -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 */