]> git.saurik.com Git - redis.git/blame - config.h
SPOP implemented. Hash table resizing for Sets and Expires too. Changed the resize...
[redis.git] / config.h
CommitLineData
dde65f3f 1#ifndef __CONFIG_H
2#define __CONFIG_H
3
d76412d1 4/* test for malloc_size() */
dde65f3f 5#ifdef __APPLE__
6#include <malloc/malloc.h>
d76412d1 7#define HAVE_MALLOC_SIZE 1
dde65f3f 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
d76412d1 20/* test for backtrace() */
21#if defined(__APPLE__) || defined(__linux__)
22#define HAVE_BACKTRACE 1
23#endif
24
dde65f3f 25#endif