]>
Commit | Line | Data |
---|---|---|
dde65f3f | 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 |