summaryrefslogtreecommitdiff
path: root/net/netcat6/patches
diff options
context:
space:
mode:
authorghen <ghen>2006-07-07 17:51:19 +0000
committerghen <ghen>2006-07-07 17:51:19 +0000
commit61885b402ede24c50f59654282120f6affc82d26 (patch)
tree7f270829edecca448df868a33a589de0a6ea0caf /net/netcat6/patches
parent1e1b539f9c40883e7514a0b9f999b3a4ceb187cd (diff)
downloadpkgsrc-61885b402ede24c50f59654282120f6affc82d26.tar.gz
Fix for gcc4: define alloca to __builtin_alloca if using gcc, from PR pkg/33930.
Diffstat (limited to 'net/netcat6/patches')
-rw-r--r--net/netcat6/patches/patch-aa27
1 files changed, 18 insertions, 9 deletions
diff --git a/net/netcat6/patches/patch-aa b/net/netcat6/patches/patch-aa
index a7bf2c9c52b..83078858cb1 100644
--- a/net/netcat6/patches/patch-aa
+++ b/net/netcat6/patches/patch-aa
@@ -1,13 +1,22 @@
-$NetBSD: patch-aa,v 1.3 2006/03/14 01:42:55 joerg Exp $
+$NetBSD: patch-aa,v 1.4 2006/07/07 17:51:19 ghen Exp $
---- src/netsupport.c.orig 2006-03-14 01:33:01.000000000 +0000
-+++ src/netsupport.c
-@@ -38,7 +38,7 @@
- #ifdef _AIX
- #pragma alloca
+--- src/netsupport.c.orig 2006-01-19 23:46:23.000000000 +0100
++++ src/netsupport.c 2006-07-06 20:48:20.000000000 +0200
+@@ -32,6 +32,9 @@
+ #include <sys/socket.h>
+ #include <netinet/in.h>
+
++#ifdef __GNUC__
++#define alloca __builtin_alloca
++#else
+ #if HAVE_ALLOCA_H
+ #include <alloca.h>
#else
--#ifndef alloca /* predefined by HP cc +Olibcalls */
-+#if !defined(alloca) && !defined(__DragonFly__) && !defined(__FreeBSD__)
- char *alloca();
+@@ -43,6 +46,7 @@ char *alloca();
#endif
#endif
+ #endif
++#endif
+
+ RCSID("@(#) $Header: /cvsroot/pkgsrc/net/netcat6/patches/patch-aa,v 1.4 2006/07/07 17:51:19 ghen Exp $");
+