mirror of
https://github.com/fluencelabs/redis
synced 2025-07-02 18:31:34 +00:00
added config.h for #ifdef business isolation, added fstat64 for Mac OS X
This commit is contained in:
20
config.h
Normal file
20
config.h
Normal file
@ -0,0 +1,20 @@
|
||||
#ifndef __CONFIG_H
|
||||
#define __CONFIG_H
|
||||
|
||||
/* malloc_size() */
|
||||
#ifdef __APPLE__
|
||||
#include <malloc/malloc.h>
|
||||
#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
|
Reference in New Issue
Block a user