aboutsummaryrefslogtreecommitdiff
path: root/crypto/async/arch
diff options
context:
space:
mode:
authorMatt Caswell <matt@openssl.org>2015-10-09 16:32:07 +0100
committerMatt Caswell <matt@openssl.org>2015-11-20 23:35:19 +0000
commit000cc411b9281120030a970221e26c8358b0ca76 (patch)
treeba50136e36d23f30461fad883662d55127d122e1 /crypto/async/arch
parentd7e404c27bba9384f346c28931c747bba880204a (diff)
downloadopenssl-000cc411b9281120030a970221e26c8358b0ca76.zip
openssl-000cc411b9281120030a970221e26c8358b0ca76.tar.gz
openssl-000cc411b9281120030a970221e26c8358b0ca76.tar.bz2
Fix compilation error on OS-X
OS-X complains if we don't have _XOPEN_SOURCE defined. Reviewed-by: Rich Salz <rsalz@openssl.org>
Diffstat (limited to 'crypto/async/arch')
-rw-r--r--crypto/async/arch/async_posix.h6
1 files changed, 6 insertions, 0 deletions
diff --git a/crypto/async/arch/async_posix.h b/crypto/async/arch/async_posix.h
index 0e6a0a0..aac12f1 100644
--- a/crypto/async/arch/async_posix.h
+++ b/crypto/async/arch/async_posix.h
@@ -61,6 +61,12 @@
# 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"