]> git.saurik.com Git - redis.git/blob - config.h
Redis version modified to 0.900
[redis.git] / config.h
1 #ifndef __CONFIG_H
2 #define __CONFIG_H
3
4 /* test for malloc_size() */
5 #ifdef __APPLE__
6 #include <malloc/malloc.h>
7 #define HAVE_MALLOC_SIZE 1
8 #define redis_malloc_size(p) malloc_size(p)
9 #endif
10
11 /* define redis_fstat to fstat or fstat64() */
12 #ifdef __APPLE__
13 #define redis_fstat fstat64
14 #define redis_stat stat64
15 #else
16 #define redis_fstat fstat
17 #define redis_stat stat
18 #endif
19
20 /* test for backtrace() */
21 #if defined(__APPLE__) || defined(__linux__)
22 #define HAVE_BACKTRACE 1
23 #endif
24
25 #endif