Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Newer
Older
100644 39 lines (31 sloc) 0.817 kb
dde65f3 @antirez added config.h for #ifdef business isolation, added fstat64 for Mac OS X
authored
1 #ifndef __CONFIG_H
2 #define __CONFIG_H
3
06db1f5 @antirez fixed compilation with Snow Leopard, thanks to Lon Baker for providin…
authored
4 #ifdef __APPLE__
5 #include <AvailabilityMacros.h>
6 #endif
7
d76412d @antirez some minor changes to the backtrace code
authored
8 /* test for malloc_size() */
dde65f3 @antirez added config.h for #ifdef business isolation, added fstat64 for Mac OS X
authored
9 #ifdef __APPLE__
10 #include <malloc/malloc.h>
d76412d @antirez some minor changes to the backtrace code
authored
11 #define HAVE_MALLOC_SIZE 1
dde65f3 @antirez added config.h for #ifdef business isolation, added fstat64 for Mac OS X
authored
12 #define redis_malloc_size(p) malloc_size(p)
13 #endif
14
15 /* define redis_fstat to fstat or fstat64() */
06db1f5 @antirez fixed compilation with Snow Leopard, thanks to Lon Baker for providin…
authored
16 #if defined(__APPLE__) && !defined(MAC_OS_X_VERSION_10_6)
dde65f3 @antirez added config.h for #ifdef business isolation, added fstat64 for Mac OS X
authored
17 #define redis_fstat fstat64
18 #define redis_stat stat64
19 #else
20 #define redis_fstat fstat
21 #define redis_stat stat
22 #endif
23
d76412d @antirez some minor changes to the backtrace code
authored
24 /* test for backtrace() */
25 #if defined(__APPLE__) || defined(__linux__)
26 #define HAVE_BACKTRACE 1
27 #endif
28
266373b @antirez ae.c now supports multiple polling API modules, even if only ae_selec…
authored
29 /* test for polling API */
30 #ifdef __linux__
31 #define HAVE_EPOLL 1
32 #endif
33
37be276 @antirez enable kqueue/kevent only for Mac OS X 10.6.x as it seems that 10.5.x…
authored
34 #if (defined(__APPLE__) && defined(MAC_OS_X_VERSION_10_6)) || defined(__FreeBSD__) || defined(__OpenBSD__) || defined (__NetBSD__)
f3053eb @mallipeddi Added support for kqueue.
mallipeddi authored
35 #define HAVE_KQUEUE 1
36 #endif
37
dde65f3 @antirez added config.h for #ifdef business isolation, added fstat64 for Mac OS X
authored
38 #endif
Something went wrong with that request. Please try again.