summaryrefslogtreecommitdiff
path: root/net
diff options
context:
space:
mode:
authorjoerg <joerg>2008-05-06 17:37:30 +0000
committerjoerg <joerg>2008-05-06 17:37:30 +0000
commitcedf0783989aa5db6ef72c3da521b1ae755d86fe (patch)
treec942c16bb10b490c3baedea47ef5bc2166186763 /net
parent25bd80066f4affeafdff7c09c40b864fd11abb34 (diff)
downloadpkgsrc-cedf0783989aa5db6ef72c3da521b1ae755d86fe.tar.gz
glibc loves to not define common string functions and fail miserably
as some headers are already included. Define _GNU_SOURCE early...
Diffstat (limited to 'net')
-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>