Fix usleep compilation warning in auth.c (#11925)

There is a -Wimplicit-function-declaration warning in here:
```
auth.c: In function ‘AuthBlock_ThreadMain’:
auth.c:116:5: warning: implicit declaration of function ‘usleep’; did you mean ‘sleep’? [-Wimplicit-function-declaration]
  116 |     usleep(500000);
      |     ^~~~~~
      |     sleep
```
This commit is contained in:
Binbin
2023-03-16 11:24:52 +02:00
committed by GitHub
parent 0b159b34ea
commit 484b73a842
+4
View File
@@ -1,3 +1,7 @@
/* define macros for having usleep */
#define _BSD_SOURCE
#define _DEFAULT_SOURCE
#include "redismodule.h"
#include <string.h>