mirror of
https://github.com/fluencelabs/redis
synced 2025-06-12 00:31:21 +00:00
fixed compilation with Snow Leopard, thanks to Lon Baker for providing SSH access to Snow Leopard box
This commit is contained in:
6
config.h
6
config.h
@ -1,6 +1,10 @@
|
||||
#ifndef __CONFIG_H
|
||||
#define __CONFIG_H
|
||||
|
||||
#ifdef __APPLE__
|
||||
#include <AvailabilityMacros.h>
|
||||
#endif
|
||||
|
||||
/* test for malloc_size() */
|
||||
#ifdef __APPLE__
|
||||
#include <malloc/malloc.h>
|
||||
@ -9,7 +13,7 @@
|
||||
#endif
|
||||
|
||||
/* define redis_fstat to fstat or fstat64() */
|
||||
#ifdef __APPLE__
|
||||
#if defined(__APPLE__) && !defined(MAC_OS_X_VERSION_10_6)
|
||||
#define redis_fstat fstat64
|
||||
#define redis_stat stat64
|
||||
#else
|
||||
|
Reference in New Issue
Block a user