1
0
mirror of https://github.com/fluencelabs/redis synced 2025-07-03 02:41:33 +00:00
Files
client-libraries
design-documents
doc
utils
.gitignore
BETATESTING.txt
BUGS
COPYING
Changelog
Makefile
README
TODO
adlist.c
adlist.h
ae.c
ae.h
ae_epoll.c
ae_kqueue.c
ae_select.c
anet.c
anet.h
config.h
dict.c
dict.h
fmacros.h
linenoise.c
linenoise.h
lzf.h
lzfP.h
lzf_c.c
lzf_d.c
pqsort.c
pqsort.h
redis-benchmark.c
redis-check-dump.c
redis-cli.c
redis.c
redis.conf
redis.h
redis.tcl
sds.c
sds.h
solarisfixes.h
staticsymbols.h
test-redis.tcl
zipmap.c
zipmap.h
zmalloc.c
zmalloc.h
redis/config.h

39 lines
817 B
C
Raw Normal View History

#ifndef __CONFIG_H
#define __CONFIG_H
#ifdef __APPLE__
#include <AvailabilityMacros.h>
#endif
/* test for malloc_size() */
#ifdef __APPLE__
#include <malloc/malloc.h>
#define HAVE_MALLOC_SIZE 1
#define redis_malloc_size(p) malloc_size(p)
#endif
/* 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 fstat
#define redis_stat stat
#endif
/* test for backtrace() */
#if defined(__APPLE__) || defined(__linux__)
#define HAVE_BACKTRACE 1
#endif
/* test for polling API */
#ifdef __linux__
#define HAVE_EPOLL 1
#endif
#if (defined(__APPLE__) && defined(MAC_OS_X_VERSION_10_6)) || defined(__FreeBSD__) || defined(__OpenBSD__) || defined (__NetBSD__)
2009-11-28 19:16:21 +05:30
#define HAVE_KQUEUE 1
#endif
#endif