Commit 03dc77e0 authored by Matt Caswell's avatar Matt Caswell
Browse files

Further OS-X deprecated warnings tweak



Even with _XOPEN_SOURCE defined OS-X still displays warnings that
makecontext and friends are deprecated. This isn't a problem until you
try and build with --strict-warnings, and the build fails. This change
suppresses the warnings. We know they are deprecated but there is no
alternative!

Reviewed-by: default avatarRich Salz <rsalz@openssl.org>
parent 90fa7296
Loading
Loading
Loading
Loading
+3 −1
Original line number Diff line number Diff line
@@ -63,9 +63,11 @@

/*
 * Some platforms complain (e.g. OS-X) that setcontext/getcontext/makecontext
 * are deprecated without this defined
 * are deprecated without the following defined. We know its deprecated but
 * there is no alternative.
 */
#  define _XOPEN_SOURCE
#  pragma GCC diagnostic ignored "-Wdeprecated-declarations"

#  include <ucontext.h>
#  include <setjmp.h>