1
0
mirror of https://github.com/RIOT-OS/RIOT.git synced 2024-12-29 04:50:03 +01:00

examples/posix_sockets: fix undefined usleep

This commit is contained in:
smlng 2018-01-16 11:07:19 +01:00
parent 6b0491eca2
commit fbb34761a3
2 changed files with 10 additions and 0 deletions

View File

@ -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>

View File

@ -19,6 +19,11 @@
* @}
*/
/* needed for posix usleep */
#ifndef _XOPEN_SOURCE
#define _XOPEN_SOURCE 600
#endif
#include <stdio.h>
#include <unistd.h>