Fix compilation error on OS-X

OS-X complains if we don't have _XOPEN_SOURCE defined.

Reviewed-by: Rich Salz <rsalz@openssl.org>
This commit is contained in:
Matt Caswell
2015-10-09 16:32:07 +01:00
parent d7e404c27b
commit 000cc411b9

View File

@@ -61,6 +61,12 @@
# define ASYNC_POSIX # define ASYNC_POSIX
# define ASYNC_ARCH # define ASYNC_ARCH
/*
* Some platforms complain (e.g. OS-X) that setcontext/getcontext/makecontext
* are deprecated without this defined
*/
# define _XOPEN_SOURCE
# include <ucontext.h> # include <ucontext.h>
# include <setjmp.h> # include <setjmp.h>
# include "e_os.h" # include "e_os.h"