]> git.ipfire.org Git - thirdparty/openssl.git/commitdiff
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 0e6a0a06625b223263fa793e26eb5c6a83ed35fa..aac12f16443e944523e10318f3ac7eddcec40dc7 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"