Skip to content

Commit

Permalink
stat64 is deprecated on mac (#737)
Browse files Browse the repository at this point in the history
  • Loading branch information
msotheeswaran-sc committed Nov 16, 2023
1 parent de3c218 commit 674d9fb
Showing 1 changed file with 2 additions and 6 deletions.
8 changes: 2 additions & 6 deletions src/config.h
Original file line number Diff line number Diff line change
Expand Up @@ -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__
Expand Down

0 comments on commit 674d9fb

Please sign in to comment.