summaryrefslogtreecommitdiff
path: root/devel/aegis/patches/patch-common_stack.cc
blob: 904c661d9f695067f8fbcdff0fc077b1024c5822 (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
$NetBSD: patch-common_stack.cc,v 1.1 2013/12/07 21:07:56 dholland Exp $

Fix build with the latest C++ "standard".

--- common/stack.cc~	2009-06-25 16:00:55.000000000 +0000
+++ common/stack.cc
@@ -24,7 +24,7 @@ static int
 find_stack_direction ()
 {
     static char *addr = 0;
-    auto char dummy;
+    char dummy;
     if (addr == 0)
     {
 	addr = &dummy;
@@ -47,7 +47,7 @@ variable_is_on_stack(void *p)
 	return false;
     if (stack_direction == 0)
 	stack_direction = find_stack_direction();
-    auto char dummy = 0;
+    char dummy = 0;
     char *cp = (char *)p;
     return (stack_direction < 0 ?  (&dummy < cp) : (&dummy > cp));
 }