Avoid deprecated error on Darwin.

This commit is contained in:
Ilya Dmitrichenko 2012-02-28 21:36:05 +00:00 committed by David Kopf
parent b67e49051c
commit 49cd7878e3

View File

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