summaryrefslogtreecommitdiff
path: root/games/warzone2100/patches/patch-ab
diff options
context:
space:
mode:
Diffstat (limited to 'games/warzone2100/patches/patch-ab')
-rw-r--r--games/warzone2100/patches/patch-ab17
1 files changed, 17 insertions, 0 deletions
diff --git a/games/warzone2100/patches/patch-ab b/games/warzone2100/patches/patch-ab
new file mode 100644
index 00000000000..0b5cec6ca44
--- /dev/null
+++ b/games/warzone2100/patches/patch-ab
@@ -0,0 +1,17 @@
+$NetBSD: patch-ab,v 1.1.1.1 2009/02/15 16:05:43 jmcneill Exp $
+
+--- lib/framework/wzglobal.h.orig 2008-12-21 13:41:15.000000000 -0500
++++ lib/framework/wzglobal.h
+@@ -522,7 +522,11 @@
+
+ #elif defined(WZ_OS_UNIX)
+ # include <unistd.h>
+-# include <alloca.h>
++# if defined(__linux__)
++# include <alloca.h>
++# else
++# include <stdlib.h>
++# endif
+ #endif /* WZ_OS_* */
+
+