[openssl-dev] [openssl.org #3934] [PATCH] test: use _DEFAULT_SOURCE with newer glibc versions

Mike Frysinger via RT rt at openssl.org
Fri Jul 10 10:47:55 UTC 2015


The _BSD_SOURCE macro is replaced by the _DEFAULT_SOURCE macro.  Using
just the former with newer versions leads to a build time warning, so
make sure to use the new macro too.
---
 test/ssltest.c | 1 +
 1 file changed, 1 insertion(+)

diff --git a/test/ssltest.c b/test/ssltest.c
index 26cf96c..b36f667 100644
--- a/test/ssltest.c
+++ b/test/ssltest.c
@@ -141,6 +141,7 @@
  */
 
 /* Or gethostname won't be declared properly on Linux and GNU platforms. */
+#define _DEFAULT_SOURCE 1
 #define _BSD_SOURCE 1
 
 #include <assert.h>
-- 
2.4.4

_______________________________________________
openssl-bugs-mod mailing list
openssl-bugs-mod at openssl.org
https://mta.openssl.org/mailman/listinfo/openssl-bugs-mod



More information about the openssl-dev mailing list