summaryrefslogtreecommitdiff
path: root/tests
diff options
context:
space:
mode:
Diffstat (limited to 'tests')
-rw-r--r--tests/modules/auth.c4
1 files changed, 4 insertions, 0 deletions
diff --git a/tests/modules/auth.c b/tests/modules/auth.c
index 9ef0626cb..19be95a0a 100644
--- a/tests/modules/auth.c
+++ b/tests/modules/auth.c
@@ -1,3 +1,7 @@
+/* define macros for having usleep */
+#define _BSD_SOURCE
+#define _DEFAULT_SOURCE
+
#include "redismodule.h"
#include <string.h>