summaryrefslogtreecommitdiff
path: root/lang/caml-light/patches/patch-ak
diff options
context:
space:
mode:
Diffstat (limited to 'lang/caml-light/patches/patch-ak')
-rw-r--r--lang/caml-light/patches/patch-ak21
1 files changed, 21 insertions, 0 deletions
diff --git a/lang/caml-light/patches/patch-ak b/lang/caml-light/patches/patch-ak
new file mode 100644
index 00000000000..5a43e951856
--- /dev/null
+++ b/lang/caml-light/patches/patch-ak
@@ -0,0 +1,21 @@
+$NetBSD: patch-ak,v 1.1 2008/09/05 02:07:51 dholland Exp $
+
+Fix build with gcc4.
+
+--- runtime/interp.c~ 1997-06-27 09:59:03.000000000 -0400
++++ runtime/interp.c 2008-09-04 20:53:27.000000000 -0400
+@@ -177,10 +177,10 @@ value interprete(prog)
+ register value * asp;
+ register value * rsp;
+ #else
+- register code_t pc;
+- register value accu;
+- register value * asp;
+- register value * rsp;
++ register volatile code_t pc;
++ register volatile value accu;
++ register value * volatile asp;
++ register value * volatile rsp;
+ #endif
+ #endif
+ #endif