]> git.ipfire.org Git - thirdparty/openssl.git/commitdiff
_BSD_SOURCE is deprecated, use _DEFAULT_SOURCE instead
authorRichard Levitte <levitte@openssl.org>
Wed, 2 Dec 2015 17:18:03 +0000 (18:18 +0100)
committerRichard Levitte <levitte@openssl.org>
Wed, 2 Dec 2015 17:50:01 +0000 (18:50 +0100)
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 <rsalz@openssl.org>
(cherry picked from commit f9fd35248c9a3b1125d9ab82ffb19d62e86533ac)

ssl/ssltest.c

index 2f5a1343996de0a920f58221c1b5d9f1c83f698f..7a758f0283a0f74397c39b76654c4c1a42c5d1dd 100644 (file)
 
 /* Or gethostname won't be declared properly on Linux and GNU platforms. */
 #define _BSD_SOURCE 1
+#define _DEFAULT_SOURCE 1
 
 #include <assert.h>
 #include <errno.h>