summaryrefslogtreecommitdiff
path: root/wm/metisse/patches/patch-aa
blob: 97b982a827828eb80f2dce2dec3a52443a72012d (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
$NetBSD: patch-aa,v 1.3 2009/07/24 12:10:18 obache Exp $

--- fvwm-insitu/config.h.in.orig	2008-12-09 12:56:45.000000000 +0000
+++ fvwm-insitu/config.h.in
@@ -554,8 +554,12 @@
 #  ifdef _AIX
        #pragma alloca
 #  else
-#    ifndef alloca /* predefined by HP cc +Olibcalls */
+#    if defined(__NetBSD__) || defined(__DragonFly__) || defined(__FreeBSD__)
+#      include <stdlib.h>
+#    else
+#      ifndef alloca /* predefined by HP cc +Olibcalls */
 	 char *alloca ();
+#      endif
 #    endif
 #  endif
 #endif