X-Git-Url: https://git.saurik.com/redis.git/blobdiff_plain/d76412d1d1268c168332d7a4ca6020a5ac461b72..03a37888f6581ec46d5eaee8c77b18b7926d2ca3:/config.h diff --git a/config.h b/config.h index 52f1afdb..7cf0f0a3 100644 --- a/config.h +++ b/config.h @@ -1,6 +1,10 @@ #ifndef __CONFIG_H #define __CONFIG_H +#ifdef __APPLE__ +#include +#endif + /* test for malloc_size() */ #ifdef __APPLE__ #include @@ -9,7 +13,7 @@ #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 @@ -22,4 +26,13 @@ #define HAVE_BACKTRACE 1 #endif +/* test for polling API */ +#ifdef __linux__ +#define HAVE_EPOLL 1 +#endif + +#if defined(__APPLE__) || defined(__FreeBSD__) || defined(__OpenBSD__) || defined (__NetBSD__) +#define HAVE_KQUEUE 1 +#endif + #endif