examples/posix_sockets: fix undefined usleep
This commit is contained in:
parent
6b0491eca2
commit
fbb34761a3
@ -18,6 +18,11 @@
|
||||
* @}
|
||||
*/
|
||||
|
||||
/* needed for posix usleep */
|
||||
#ifndef _XOPEN_SOURCE
|
||||
#define _XOPEN_SOURCE 600
|
||||
#endif
|
||||
|
||||
#include <inttypes.h>
|
||||
#include <stdio.h>
|
||||
#include <stdlib.h>
|
||||
|
||||
@ -19,6 +19,11 @@
|
||||
* @}
|
||||
*/
|
||||
|
||||
/* needed for posix usleep */
|
||||
#ifndef _XOPEN_SOURCE
|
||||
#define _XOPEN_SOURCE 600
|
||||
#endif
|
||||
|
||||
#include <stdio.h>
|
||||
#include <unistd.h>
|
||||
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user