diff options
author | Matt Caswell <matt@openssl.org> | 2015-10-09 16:32:07 +0100 |
---|---|---|
committer | Matt Caswell <matt@openssl.org> | 2015-11-20 23:35:19 +0000 |
commit | 000cc411b9281120030a970221e26c8358b0ca76 (patch) | |
tree | ba50136e36d23f30461fad883662d55127d122e1 | |
parent | d7e404c27bba9384f346c28931c747bba880204a (diff) | |
download | openssl-000cc411b9281120030a970221e26c8358b0ca76.tar.gz |
Fix compilation error on OS-X
OS-X complains if we don't have _XOPEN_SOURCE defined.
Reviewed-by: Rich Salz <rsalz@openssl.org>
-rw-r--r-- | crypto/async/arch/async_posix.h | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/crypto/async/arch/async_posix.h b/crypto/async/arch/async_posix.h index 0e6a0a0662..aac12f1644 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" |