From 015b17257855e31003eb29a70280764c3c822710 Mon Sep 17 00:00:00 2001 From: Richard Levitte Date: Wed, 2 Dec 2015 18:18:03 +0100 Subject: [PATCH] _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) --- ssl/ssltest.c | 1 + 1 file changed, 1 insertion(+) diff --git a/ssl/ssltest.c b/ssl/ssltest.c index 12d68e3ed4..9605546e05 100644 --- a/ssl/ssltest.c +++ b/ssl/ssltest.c @@ -142,6 +142,7 @@ /* Or gethostname won't be declared properly on Linux and GNU platforms. */ #define _BSD_SOURCE 1 +#define _DEFAULT_SOURCE 1 #include #include