summaryrefslogtreecommitdiff
path: root/net/libfetch
diff options
context:
space:
mode:
authorjoerg <joerg@pkgsrc.org>2008-04-21 22:36:08 +0000
committerjoerg <joerg@pkgsrc.org>2008-04-21 22:36:08 +0000
commit8eadbc1bd4f8158cc799119063899a7fa6b3dff1 (patch)
treeef401d126c972f76f0f8d02afdec760ed85c9ad9 /net/libfetch
parent9a658c90880b5ca682f333acd22bc3ffd0c04e79 (diff)
downloadpkgsrc-8eadbc1bd4f8158cc799119063899a7fa6b3dff1.tar.gz
Fix another surprise from the glibc folks.
Diffstat (limited to 'net/libfetch')
-rw-r--r--net/libfetch/files/http.c7
1 files changed, 6 insertions, 1 deletions
diff --git a/net/libfetch/files/http.c b/net/libfetch/files/http.c
index e821bc09817..6b6fc446f50 100644
--- a/net/libfetch/files/http.c
+++ b/net/libfetch/files/http.c
@@ -1,4 +1,4 @@
-/* $NetBSD: http.c,v 1.15 2008/04/19 14:49:24 joerg Exp $ */
+/* $NetBSD: http.c,v 1.16 2008/04/21 22:36:08 joerg Exp $ */
/*-
* Copyright (c) 2000-2004 Dag-Erling Coïdan Smørgrav
* Copyright (c) 2003 Thomas Klausner <wiz@NetBSD.org>
@@ -68,6 +68,11 @@
#endif
#include <nbcompat.h>
+#ifdef __GLIBC__
+/* Keep this down to Linux, it can create surprises else where. */
+#define _XOPEN_SOURCE
+#endif
+
#include <sys/types.h>
#include <sys/socket.h>