summaryrefslogtreecommitdiff
path: root/net/netcat6/patches/patch-aa
blob: 5ff40995d416cd1a8183d116aa393f9db2ef47ca (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
$NetBSD: patch-aa,v 1.6 2017/11/11 17:28:39 maya Exp $

Don't try to define alloca on BSDs

--- src/netsupport.c.orig	2006-03-14 01:33:01.000000000 +0000
+++ src/netsupport.c
@@ -38,7 +38,7 @@
 #ifdef _AIX
 #pragma alloca
 #else
-#ifndef alloca /* predefined by HP cc +Olibcalls */
+#if !defined(alloca) && !defined(__DragonFly__) && !defined(__FreeBSD__) && !defined(__NetBSD__)
 char *alloca();
 #endif
 #endif