summaryrefslogtreecommitdiff
path: root/src/redisassert.h
diff options
context:
space:
mode:
Diffstat (limited to 'src/redisassert.h')
-rw-r--r--src/redisassert.h4
1 files changed, 3 insertions, 1 deletions
diff --git a/src/redisassert.h b/src/redisassert.h
index e2cf47cb5..e5825c0f5 100644
--- a/src/redisassert.h
+++ b/src/redisassert.h
@@ -38,7 +38,9 @@
#ifndef __REDIS_ASSERT_H__
#define __REDIS_ASSERT_H__
-#define redisAssert(_e) ((_e)?(void)0 : (_redisAssert(#_e,__FILE__,__LINE__),_exit(1)))
+#include <unistd.h> /* for _exit() */
+
+#define assert(_e) ((_e)?(void)0 : (_redisAssert(#_e,__FILE__,__LINE__),_exit(1)))
void _redisAssert(char *estr, char *file, int line);