summaryrefslogtreecommitdiff
path: root/net/libfetch
diff options
context:
space:
mode:
authorjoerg <joerg@pkgsrc.org>2008-12-02 16:59:03 +0000
committerjoerg <joerg@pkgsrc.org>2008-12-02 16:59:03 +0000
commitdb16e614b2229ae91a90771c6db8d63221304b29 (patch)
treee074e9e166e1ad7b38f43957d550be033986b8b0 /net/libfetch
parentcec8f1b93eb4649ecc9cb823fc66ea4cfeaf1308 (diff)
downloadpkgsrc-db16e614b2229ae91a90771c6db8d63221304b29.tar.gz
Be a bit nicer to native linux use and define _GNU_SOURCE here as well.
Diffstat (limited to 'net/libfetch')
-rw-r--r--net/libfetch/files/ftp.c7
1 files changed, 6 insertions, 1 deletions
diff --git a/net/libfetch/files/ftp.c b/net/libfetch/files/ftp.c
index 65de349e243..be5fee7498e 100644
--- a/net/libfetch/files/ftp.c
+++ b/net/libfetch/files/ftp.c
@@ -1,4 +1,4 @@
-/* $NetBSD: ftp.c,v 1.24 2008/10/08 15:11:21 joerg Exp $ */
+/* $NetBSD: ftp.c,v 1.25 2008/12/02 16:59:03 joerg Exp $ */
/*-
* Copyright (c) 1998-2004 Dag-Erling Coïdan Smørgrav
* Copyright (c) 2008 Joerg Sonnenberger <joerg@NetBSD.org>
@@ -57,6 +57,11 @@
*
*/
+#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