Unverified Commit 9f0f533b authored by Binbin's avatar Binbin Committed by GitHub
Browse files

Solve usleep compilation warning in keyspace_events.c (#11073)

There is a -Wimplicit-function-declaration warning in here:
```
keyspace_events.c: In function ‘KeySpace_NotificationGeneric’:
keyspace_events.c:67:9: warning: implicit declaration of function ‘usleep’; did you mean ‘sleep’? [-Wimplicit-function-declaration]
   67 |         usleep(1);
      |         ^~~~~~
      |         sleep
```
parent 4ce3fd51
...@@ -30,6 +30,7 @@ ...@@ -30,6 +30,7 @@
* POSSIBILITY OF SUCH DAMAGE. * POSSIBILITY OF SUCH DAMAGE.
*/ */
#define _BSD_SOURCE
#define _DEFAULT_SOURCE /* For usleep */ #define _DEFAULT_SOURCE /* For usleep */
#include "redismodule.h" #include "redismodule.h"
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment