diff options
-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" |