summaryrefslogtreecommitdiff
path: root/tests/modules/fork.c
diff options
context:
space:
mode:
Diffstat (limited to 'tests/modules/fork.c')
-rw-r--r--tests/modules/fork.c6
1 files changed, 5 insertions, 1 deletions
diff --git a/tests/modules/fork.c b/tests/modules/fork.c
index 0804e4355..1a139ef1b 100644
--- a/tests/modules/fork.c
+++ b/tests/modules/fork.c
@@ -1,6 +1,10 @@
#define REDISMODULE_EXPERIMENTAL_API
-#include "redismodule.h"
+/* define macros for having usleep */
+#define _BSD_SOURCE
+#define _DEFAULT_SOURCE
+
+#include "redismodule.h"
#include <string.h>
#include <assert.h>
#include <unistd.h>