#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
#define redis_stat stat
#endif
+/* test for backtrace() */
+#if defined(__APPLE__) || defined(__linux__)
+#define HAVE_BACKTRACE 1
+#endif
+
#endif