summaryrefslogtreecommitdiff
path: root/net/netcat6/patches/patch-aa
blob: 83078858cb1d847d3d2da8eef22fcdcd687d56c5 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
$NetBSD: patch-aa,v 1.4 2006/07/07 17:51:19 ghen Exp $

--- 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
@@ -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 $");