]> git.saurik.com Git - redis.git/blob - config.h
added config.h for #ifdef business isolation, added fstat64 for Mac OS X
[redis.git] / config.h
1 #ifndef __CONFIG_H
2 #define __CONFIG_H
3
4 /* malloc_size() */
5 #ifdef __APPLE__
6 #include <malloc/malloc.h>
7 #define HAVE_MALLOC_SIZE
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 #endif