forked from redis/redis
-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
added config.h for #ifdef business isolation, added fstat64 for Mac OS X
- Loading branch information
Showing
4 changed files
with
25 additions
and
10 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -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 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters