summaryrefslogtreecommitdiff
path: root/src/sdsalloc.h
diff options
context:
space:
mode:
authorhwware <wen.hui.ware@gmail.com>2020-02-22 11:38:51 -0500
committerhwware <wen.hui.ware@gmail.com>2020-02-22 11:38:51 -0500
commit743cfc0ad604c48bfa8c408ca36c6a5b90996aad (patch)
tree5ef04c2dd9ce2803d42c2260670be58cc97af1ec /src/sdsalloc.h
parente78c4e813cecfa97505efe29c073f8088542f69e (diff)
downloadredis-743cfc0ad604c48bfa8c408ca36c6a5b90996aad.tar.gz
add missing file marco
Diffstat (limited to 'src/sdsalloc.h')
-rw-r--r--src/sdsalloc.h5
1 files changed, 5 insertions, 0 deletions
diff --git a/src/sdsalloc.h b/src/sdsalloc.h
index 531d41929..c04ff2a0a 100644
--- a/src/sdsalloc.h
+++ b/src/sdsalloc.h
@@ -36,7 +36,12 @@
* the include of your alternate allocator if needed (not needed in order
* to use the default libc allocator). */
+#ifndef __SDS_ALLOC_H__
+#define __SDS_ALLOC_H__
+
#include "zmalloc.h"
#define s_malloc zmalloc
#define s_realloc zrealloc
#define s_free zfree
+
+#endif