X-Git-Url: https://git.saurik.com/redis.git/blobdiff_plain/c4cd5f393ced23cb298c52eaa5ed67569d3f8d0d..802e8373735c2708029f03b4b46ecc0e0ee50a1d:/config.h diff --git a/config.h b/config.h index 79240b75..c19cfc74 100644 --- a/config.h +++ b/config.h @@ -1,15 +1,19 @@ #ifndef __CONFIG_H #define __CONFIG_H -/* malloc_size() */ +#ifdef __APPLE__ +#include +#endif + +/* test for malloc_size() */ #ifdef __APPLE__ #include -#define HAVE_MALLOC_SIZE +#define HAVE_MALLOC_SIZE 1 #define redis_malloc_size(p) malloc_size(p) #endif /* define redis_fstat to fstat or fstat64() */ -#ifdef __APPLE__ +#if defined(__APPLE__) && !defined(MAC_OS_X_VERSION_10_6) #define redis_fstat fstat64 #define redis_stat stat64 #else @@ -17,4 +21,9 @@ #define redis_stat stat #endif +/* test for backtrace() */ +#if defined(__APPLE__) || defined(__linux__) +#define HAVE_BACKTRACE 1 +#endif + #endif