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>
/*
* 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>