stat64 is deprecated on mac

This commit is contained in:
Malavan Sotheeswaran committed 2023-11-09 00:17:41 -08:00
1 parent de3c218a02
commit 033de9ac9c
1 file changed
+2 -6
+2 -6
View File
@@ -41,14 +41,10 @@
#define CONFIG_DEFAULT_RDB_FILENAME "dump.rdb"
/* Define redis_fstat to fstat or fstat64() */
#if defined(__APPLE__) && !defined(MAC_OS_X_VERSION_10_6)
#define redis_fstat fstat64
#define redis_stat stat64
#else
/* Define redis_fstat to fstat */
#define redis_fstat fstat
#define redis_stat stat
#endif
/* Test for proc filesystem */
#ifdef __linux__