From 000cc411b9281120030a970221e26c8358b0ca76 Mon Sep 17 00:00:00 2001 From: Matt Caswell Date: Fri, 9 Oct 2015 16:32:07 +0100 Subject: [PATCH] Fix compilation error on OS-X OS-X complains if we don't have _XOPEN_SOURCE defined. Reviewed-by: Rich Salz --- crypto/async/arch/async_posix.h | 6 ++++++ 1 file changed, 6 insertions(+) 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" -- 2.40.0