Skip to content

Commit 674d9fb

Browse files
stat64 is deprecated on mac (#737)
1 parent de3c218 commit 674d9fb

File tree

1 file changed

+2
-6
lines changed

1 file changed

+2
-6
lines changed

src/config.h

+2-6
Original file line numberDiff line numberDiff line change
@@ -41,14 +41,10 @@
4141

4242
#define CONFIG_DEFAULT_RDB_FILENAME "dump.rdb"
4343

44-
/* Define redis_fstat to fstat or fstat64() */
45-
#if defined(__APPLE__) && !defined(MAC_OS_X_VERSION_10_6)
46-
#define redis_fstat fstat64
47-
#define redis_stat stat64
48-
#else
44+
/* Define redis_fstat to fstat */
4945
#define redis_fstat fstat
5046
#define redis_stat stat
51-
#endif
47+
5248

5349
/* Test for proc filesystem */
5450
#ifdef __linux__

0 commit comments

Comments
 (0)