mirror of
https://github.com/samba-team/samba.git
synced 2025-02-26 21:57:41 +03:00
s3: Remove unsused MMAP_BLACKLIST ifdef checks
This doesn't get defined by anything. Signed-off-by: Andreas Schneider <asn@samba.org> Reviewed-by: Gary Lockyer <gary@catalyst.net.nz>
This commit is contained in:
parent
63a48e6487
commit
9f28d8e896
@ -832,10 +832,6 @@ typedef unsigned long long ptrdiff_t ;
|
||||
*/
|
||||
#define PTR_DIFF(p1,p2) ((ptrdiff_t)(((const char *)(p1)) - (const char *)(p2)))
|
||||
|
||||
#if MMAP_BLACKLIST
|
||||
#undef HAVE_MMAP
|
||||
#endif
|
||||
|
||||
#ifdef __COMPAR_FN_T
|
||||
#define QSORT_CAST (__compar_fn_t)
|
||||
#endif
|
||||
|
@ -362,13 +362,6 @@ char *talloc_asprintf_strupper_m(TALLOC_CTX *t, const char *fmt, ...) PRINTF_ATT
|
||||
#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
|
||||
|
||||
void dump_core(void) _NORETURN_;
|
||||
void exit_server(const char *const reason) _NORETURN_;
|
||||
void exit_server_cleanly(const char *const reason) _NORETURN_;
|
||||
|
@ -712,11 +712,7 @@ static void init_globals(struct loadparm_context *lp_ctx, bool reinit_globals)
|
||||
Globals.oplock_break_wait_time = 0; /* By Default, 0 msecs. */
|
||||
Globals.enhanced_browsing = true;
|
||||
Globals.lock_spin_time = WINDOWS_MINIMUM_LOCK_TIMEOUT_MS; /* msec. */
|
||||
#ifdef MMAP_BLACKLIST
|
||||
Globals.use_mmap = false;
|
||||
#else
|
||||
Globals.use_mmap = true;
|
||||
#endif
|
||||
Globals.unicode = true;
|
||||
Globals.unix_extensions = true;
|
||||
Globals.reset_on_zero_vc = false;
|
||||
|
Loading…
x
Reference in New Issue
Block a user