]>
git.saurik.com Git - redis.git/blob - src/config.h
5 #include <AvailabilityMacros.h>
8 /* test for malloc_size() */
10 #include <malloc/malloc.h>
11 #define HAVE_MALLOC_SIZE 1
12 #define redis_malloc_size(p) malloc_size(p)
15 /* define redis_fstat to fstat or fstat64() */
16 #if defined(__APPLE__) && !defined(MAC_OS_X_VERSION_10_6)
17 #define redis_fstat fstat64
18 #define redis_stat stat64
20 #define redis_fstat fstat
21 #define redis_stat stat
24 /* test for proc filesystem */
29 /* test for task_info() */
30 #if defined(__APPLE__)
31 #define HAVE_TASKINFO 1
34 /* test for backtrace() */
35 #if defined(__APPLE__) || defined(__linux__)
36 #define HAVE_BACKTRACE 1
39 /* test for polling API */
44 #if (defined(__APPLE__) && defined(MAC_OS_X_VERSION_10_6)) || defined(__FreeBSD__) || defined(__OpenBSD__) || defined (__NetBSD__)
48 /* define aof_fsync to fdatasync() in Linux and fsync() for all the rest */
50 #define aof_fsync fdatasync
52 #define aof_fsync fsync