summaryrefslogtreecommitdiff
path: root/net
diff options
context:
space:
mode:
authorcheusov <cheusov@pkgsrc.org>2014-06-07 19:22:51 +0000
committercheusov <cheusov@pkgsrc.org>2014-06-07 19:22:51 +0000
commit10dd39c5a854dd8b08feee1e232ba0cf63921b4e (patch)
tree1826ab89a185f4eaeb09f464a25615b1dd62c463 /net
parente439d6a76cef942be47770bc1d417dfbfdf21544 (diff)
downloadpkgsrc-10dd39c5a854dd8b08feee1e232ba0cf63921b4e.tar.gz
Define _GNU_SOURCE by default for glibc-based systems (vasprintf(3)).
This fixes bootstrap failure on AltLinux.
Diffstat (limited to 'net')
-rw-r--r--net/libfetch/Makefile4
-rw-r--r--net/libfetch/files/ftp.c4
-rw-r--r--net/libfetch/files/http.c4
3 files changed, 9 insertions, 3 deletions
diff --git a/net/libfetch/Makefile b/net/libfetch/Makefile
index 518513ebd49..a8292ec9f5e 100644
--- a/net/libfetch/Makefile
+++ b/net/libfetch/Makefile
@@ -1,4 +1,4 @@
-# $NetBSD: Makefile,v 1.51 2014/02/12 23:18:22 tron Exp $
+# $NetBSD: Makefile,v 1.52 2014/06/07 19:22:51 cheusov Exp $
#
DISTNAME= libfetch-2.36
@@ -28,6 +28,8 @@ INSTALLATION_DIRS= include lib ${PKGMANDIR}/cat3 ${PKGMANDIR}/man3
BUILD_TARGET= depend all
INSTALL_TARGET= install includes
+CPPFLAGS= -D_GNU_SOURCE
+
do-extract:
${CP} -r ${FILESDIR} ${WRKSRC}
diff --git a/net/libfetch/files/ftp.c b/net/libfetch/files/ftp.c
index 34002cc0d32..d9fc201954c 100644
--- a/net/libfetch/files/ftp.c
+++ b/net/libfetch/files/ftp.c
@@ -1,4 +1,4 @@
-/* $NetBSD: ftp.c,v 1.44 2014/01/07 23:25:12 joerg Exp $ */
+/* $NetBSD: ftp.c,v 1.45 2014/06/07 19:22:51 cheusov Exp $ */
/*-
* Copyright (c) 1998-2004 Dag-Erling Coïdan Smørgrav
* Copyright (c) 2008, 2009, 2010 Joerg Sonnenberger <joerg@NetBSD.org>
@@ -59,8 +59,10 @@
#ifdef __linux__
/* Keep this down to Linux, it can create surprises else where. */
+#ifndef _GNU_SOURCE
#define _GNU_SOURCE
#endif
+#endif
#if HAVE_CONFIG_H
#include "config.h"
diff --git a/net/libfetch/files/http.c b/net/libfetch/files/http.c
index 18a24e680b4..e92ef6c3fac 100644
--- a/net/libfetch/files/http.c
+++ b/net/libfetch/files/http.c
@@ -1,4 +1,4 @@
-/* $NetBSD: http.c,v 1.35 2014/01/08 20:25:34 joerg Exp $ */
+/* $NetBSD: http.c,v 1.36 2014/06/07 19:22:51 cheusov Exp $ */
/*-
* Copyright (c) 2000-2004 Dag-Erling Coïdan Smørgrav
* Copyright (c) 2003 Thomas Klausner <wiz@NetBSD.org>
@@ -69,8 +69,10 @@
__FreeBSD_kernel__ is defined for GNU/kFreeBSD.
See http://glibc-bsd.alioth.debian.org/porting/PORTING .
*/
+#ifndef _GNU_SOURCE
#define _GNU_SOURCE
#endif
+#endif
/* Needed for gmtime_r on Interix */
#define _REENTRANT