From: Richard Levitte Date: Wed, 2 Dec 2015 17:18:03 +0000 (+0100) Subject: _BSD_SOURCE is deprecated, use _DEFAULT_SOURCE instead X-Git-Tag: OpenSSL_0_9_8zh~3 X-Git-Url: https://git.librecmc.org/?a=commitdiff_plain;h=e979e4715f3795cb59fcf46c77e7c714a184edd8;p=oweals%2Fopenssl.git _BSD_SOURCE is deprecated, use _DEFAULT_SOURCE instead The feature_test_macros(7) manual tells us that _BSD_SOURCE is deprecated since glibc 2.20 and that the compiler will warn about it being used, unless _DEFAULT_SOURCE is defined as well. Reviewed-by: Rich Salz (cherry picked from commit f9fd35248c9a3b1125d9ab82ffb19d62e86533ac) --- diff --git a/ssl/ssltest.c b/ssl/ssltest.c index 2f5a134399..7a758f0283 100644 --- a/ssl/ssltest.c +++ b/ssl/ssltest.c @@ -116,6 +116,7 @@ /* Or gethostname won't be declared properly on Linux and GNU platforms. */ #define _BSD_SOURCE 1 +#define _DEFAULT_SOURCE 1 #include #include