From: Matt Caswell Date: Fri, 9 Oct 2015 15:32:07 +0000 (+0100) Subject: Fix compilation error on OS-X X-Git-Tag: OpenSSL_1_1_0-pre1~219 X-Git-Url: https://git.librecmc.org/?a=commitdiff_plain;h=000cc411b9281120030a970221e26c8358b0ca76;p=oweals%2Fopenssl.git Fix compilation error on OS-X OS-X complains if we don't have _XOPEN_SOURCE defined. Reviewed-by: Rich Salz --- 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 # include # include "e_os.h"