stat64 is deprecated on mac (#737)
This commit is contained in:
parent
de3c218a02
commit
674d9fb7ee
@ -41,14 +41,10 @@
|
|||||||
|
|
||||||
#define CONFIG_DEFAULT_RDB_FILENAME "dump.rdb"
|
#define CONFIG_DEFAULT_RDB_FILENAME "dump.rdb"
|
||||||
|
|
||||||
/* Define redis_fstat to fstat or fstat64() */
|
/* Define redis_fstat to fstat */
|
||||||
#if defined(__APPLE__) && !defined(MAC_OS_X_VERSION_10_6)
|
|
||||||
#define redis_fstat fstat64
|
|
||||||
#define redis_stat stat64
|
|
||||||
#else
|
|
||||||
#define redis_fstat fstat
|
#define redis_fstat fstat
|
||||||
#define redis_stat stat
|
#define redis_stat stat
|
||||||
#endif
|
|
||||||
|
|
||||||
/* Test for proc filesystem */
|
/* Test for proc filesystem */
|
||||||
#ifdef __linux__
|
#ifdef __linux__
|
||||||
|
Loading…
x
Reference in New Issue
Block a user