From cedf0783989aa5db6ef72c3da521b1ae755d86fe Mon Sep 17 00:00:00 2001 From: joerg Date: Tue, 6 May 2008 17:37:30 +0000 Subject: glibc loves to not define common string functions and fail miserably as some headers are already included. Define _GNU_SOURCE early... --- net/libfetch/files/http.c | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) (limited to 'net') 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 @@ -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 -#ifdef __linux__ -/* Keep this down to Linux, it can create surprises else where. */ -#define _XOPEN_SOURCE -#endif - #include #include -- cgit v1.2.3