From: Howard Chu Date: Thu, 11 Aug 2011 21:55:58 +0000 (-0700) Subject: Portability tweak X-Git-Tag: OPENLDAP_REL_ENG_2_4_27~148^2~114 X-Git-Url: https://git.sur5r.net/?a=commitdiff_plain;h=b070f7bff9603259469b241282f2825e8576ee85;p=openldap Portability tweak --- diff --git a/libraries/libmdb/mdb.c b/libraries/libmdb/mdb.c index ec30e8040d..b485e156fb 100644 --- a/libraries/libmdb/mdb.c +++ b/libraries/libmdb/mdb.c @@ -48,7 +48,6 @@ #include #include #include -#include #include "mdb.h" @@ -93,7 +92,11 @@ typedef struct MDB_rxbody { } MDB_rxbody; #ifndef CACHELINE -#define CACHELINE 64 /* most CPUs. Itanium uses 128 */ +# ifdef __APPLE__ +# define CACHELINE 128 /* 64 is too small to contain a mutex */ +# else +# define CACHELINE 64 /* most CPUs. Itanium uses 128 */ +# endif #endif typedef struct MDB_reader {