summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorjoerg <joerg@pkgsrc.org>2008-05-06 17:37:30 +0000
committerjoerg <joerg@pkgsrc.org>2008-05-06 17:37:30 +0000
commit0f925bb1b4d11e230ce9145af28c397ddf02932b (patch)
treec942c16bb10b490c3baedea47ef5bc2166186763
parent0ca34f42d63d1baac1f7989949af2a1b015e0fa4 (diff)
downloadpkgsrc-0f925bb1b4d11e230ce9145af28c397ddf02932b.tar.gz
glibc loves to not define common string functions and fail miserably
as some headers are already included. Define _GNU_SOURCE early...
-rw-r--r--net/libfetch/files/http.c12
1 files changed, 6 insertions, 6 deletions
diff --git a/net/libfetch/files/http.c b/net/libfetch/files/http.c
index 1948e6f6f3f..e36116f4658 100644
--- a/net/libfetch/files/http.c
+++ b/net/libfetch/files/http.c
@@ -1,4 +1,4 @@
-/* $NetBSD: http.c,v 1.18 2008/04/24 07:55:00 joerg Exp $ */
+/* $NetBSD: http.c,v 1.19 2008/05/06 17:37:30 joerg Exp $ */
/*-
* Copyright (c) 2000-2004 Dag-Erling Coïdan Smørgrav
* Copyright (c) 2003 Thomas Klausner <wiz@NetBSD.org>
@@ -63,16 +63,16 @@
* SUCH DAMAGE.
*/
+#ifdef __linux__
+/* Keep this down to Linux, it can create surprises else where. */
+#define _GNU_SOURCE
+#endif
+
#if HAVE_CONFIG_H
#include "config.h"
#endif
#include <nbcompat.h>
-#ifdef __linux__
-/* Keep this down to Linux, it can create surprises else where. */
-#define _XOPEN_SOURCE
-#endif
-
#include <sys/types.h>
#include <sys/socket.h>