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: Rich Salz <rsalz@openssl.org>
This commit is contained in:
Matt Caswell 2015-10-11 16:59:08 +01:00
parent 90fa7296c2
commit 03dc77e07b

View file

@ -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>