summaryrefslogtreecommitdiff
path: root/src/slowlog.h
diff options
context:
space:
mode:
authorAndy Guan <guan.yuying.zhang@gmail.com>2019-12-02 00:28:41 -0500
committerAndy Guan <guan.yuying.zhang@gmail.com>2019-12-02 00:28:41 -0500
commit1ed5f84a79bba85ef921c931a3875a112f15c38b (patch)
tree5f7f53e7a19d9db412c6763780128b71d0f7e043 /src/slowlog.h
parentf5d48537f1aa76e5ce4f14953517bd25c9ad4673 (diff)
downloadredis-1ed5f84a79bba85ef921c931a3875a112f15c38b.tar.gz
Added the missed macro definition in slowlog.h
Diffstat (limited to 'src/slowlog.h')
-rw-r--r--src/slowlog.h5
1 files changed, 5 insertions, 0 deletions
diff --git a/src/slowlog.h b/src/slowlog.h
index 655fb25f4..50e543891 100644
--- a/src/slowlog.h
+++ b/src/slowlog.h
@@ -27,6 +27,9 @@
* POSSIBILITY OF SUCH DAMAGE.
*/
+#ifndef __SLOWLOG_H__
+#define __SLOWLOG_H__
+
#define SLOWLOG_ENTRY_MAX_ARGC 32
#define SLOWLOG_ENTRY_MAX_STRING 128
@@ -47,3 +50,5 @@ void slowlogPushEntryIfNeeded(client *c, robj **argv, int argc, long long durati
/* Exported commands */
void slowlogCommand(client *c);
+
+#endif /* __SLOWLOG_H__ */