summaryrefslogtreecommitdiff
path: root/comms/estic/patches/patch-ar
blob: 937835496609a8ae115de9342f640d82ade6855b (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
$NetBSD: patch-ar,v 1.2 2012/02/16 16:47:58 hans Exp $

--- ../spunk/menue.cc.orig	Sun Jan 26 18:17:32 1997
+++ ../spunk/menue.cc	Sat Feb 10 18:38:35 2001
@@ -26,6 +26,10 @@
 #include <stdlib.h>
 #endif
 
+#ifdef __sun
+#include <alloca.h>
+#endif
+
 #include "keydef.h"
 #include "screen.h"
 #include "winattr.h"
@@ -495,8 +499,8 @@ void GenericMenue::DynamicRight ()
 
 i16 GenericMenue::GetChoice ()
 {
-    const AltNextKeyCode = MaxUserID + 1;
-    const AltPrevKeyCode = MaxUserID + 2;
+    const int AltNextKeyCode = MaxUserID + 1;
+    const int AltPrevKeyCode = MaxUserID + 2;
 
 
     // Remember old window state