mirror of
https://github.com/oliverschmidt/contiki.git
synced 2024-12-21 19:29:18 +00:00
Avoid deprecated error on Darwin.
This commit is contained in:
parent
b67e49051c
commit
49cd7878e3
@ -40,7 +40,12 @@
|
|||||||
|
|
||||||
static void *main_fiber;
|
static void *main_fiber;
|
||||||
|
|
||||||
#elif defined(__linux)
|
#elif defined(__linux) || defined(__APPLE__)
|
||||||
|
|
||||||
|
#ifdef __APPLE__
|
||||||
|
/* Avoid deprecated error on Darwin */
|
||||||
|
#define _XOPEN_SOURCE
|
||||||
|
#endif
|
||||||
|
|
||||||
#include <stdlib.h>
|
#include <stdlib.h>
|
||||||
#include <signal.h>
|
#include <signal.h>
|
||||||
|
Loading…
Reference in New Issue
Block a user