Merge of mmap blacklist fix from HEAD.
authorTim Potter <tpot@samba.org>
Tue, 21 Oct 2003 04:46:23 +0000 (04:46 +0000)
committerTim Potter <tpot@samba.org>
Tue, 21 Oct 2003 04:46:23 +0000 (04:46 +0000)
source/include/includes.h

index 452b489547cd463a310e59fd08d1571b7fd9dbbc..fba2eabbe14ce6d66cb9878a08f271fb0fd35594 100644 (file)
@@ -1319,4 +1319,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 */