diff --git a/crypto/async/arch/async_posix.h b/crypto/async/arch/async_posix.h index 0e6a0a066..aac12f164 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"