mirror of
https://github.com/pentoo/pentoo-overlay
synced 2025-12-06 08:25:01 +01:00
29 lines
808 B
Diff
29 lines
808 B
Diff
From: Mike Frysinger <vapier@gentoo.org>
|
|
Date: Fri, 10 Jul 2015 01:50:52 -0400
|
|
Subject: test: use _DEFAULT_SOURCE with newer glibc versions
|
|
|
|
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.
|
|
|
|
Bug: https://bugs.gentoo.org/554338
|
|
Upstream-Bug: https://rt.openssl.org/Ticket/Display.html?id=3934&user=guest&pass=guest
|
|
---
|
|
ssl/ssltest.c | 1 +
|
|
1 file changed, 1 insertion(+)
|
|
|
|
diff --git a/ssl/ssltest.c b/ssl/ssltest.c
|
|
index f6a8f19..97ef221 100644
|
|
--- a/ssl/ssltest.c
|
|
+++ b/ssl/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
|
|
#define _DEFAULT_SOURCE 1
|
|
|
|
--
|
|
2.15.1
|
|
|