Fix compilation error on OS-X
authorMatt Caswell <matt@openssl.org>
Fri, 9 Oct 2015 15:32:07 +0000 (16:32 +0100)
committerMatt Caswell <matt@openssl.org>
Fri, 20 Nov 2015 23:35:19 +0000 (23:35 +0000)
OS-X complains if we don't have _XOPEN_SOURCE defined.

Reviewed-by: Rich Salz <rsalz@openssl.org>
crypto/async/arch/async_posix.h

index 0e6a0a0..aac12f1 100644 (file)
 #  define ASYNC_POSIX
 #  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 <setjmp.h>
 #  include "e_os.h"