X-Git-Url: https://git.saurik.com/redis.git/blobdiff_plain/ec93bba353113cb81dc97a738dc94de03f16b143..dde65f3f3c9949570cf19fb56e35ba195b48227d:/config.h diff --git a/config.h b/config.h new file mode 100644 index 00000000..79240b75 --- /dev/null +++ b/config.h @@ -0,0 +1,20 @@ +#ifndef __CONFIG_H +#define __CONFIG_H + +/* malloc_size() */ +#ifdef __APPLE__ +#include +#define HAVE_MALLOC_SIZE +#define redis_malloc_size(p) malloc_size(p) +#endif + +/* define redis_fstat to fstat or fstat64() */ +#ifdef __APPLE__ +#define redis_fstat fstat64 +#define redis_stat stat64 +#else +#define redis_fstat fstat +#define redis_stat stat +#endif + +#endif