]> git.saurik.com Git - redis.git/blobdiff - config.h
added utils/redis-copy.rb, a script that is able to copy data from one Redis server...
[redis.git] / config.h
index 79240b754030104e92d66741e9525a315ba9f53e..52f1afdb793e12d341d5e9ae43b2da8a3762923d 100644 (file)
--- a/config.h
+++ b/config.h
@@ -1,10 +1,10 @@
 #ifndef __CONFIG_H
 #define __CONFIG_H
 
-/* malloc_size() */
+/* test for malloc_size() */
 #ifdef __APPLE__
 #include <malloc/malloc.h>
-#define HAVE_MALLOC_SIZE
+#define HAVE_MALLOC_SIZE 1
 #define redis_malloc_size(p) malloc_size(p)
 #endif
 
@@ -17,4 +17,9 @@
 #define redis_stat stat
 #endif
 
+/* test for backtrace() */
+#if defined(__APPLE__) || defined(__linux__)
+#define HAVE_BACKTRACE 1
+#endif
+
 #endif