1
From: Stefano Zacchiroli <zack@debian.org>
2
Date: Tue, 6 Oct 2009 15:28:14 +0200
3
Subject: [PATCH] Camlp4 workarounds
5
Work around a non backward compatible change in camlp4 3.10 namely,
6
when camlp4.macro is loaded "`IN" is no longer a valid polymorphic
7
variant name. Thanks to Fedora for the patch, original source:
8
http://cvs.fedoraproject.org/viewvc/devel/ocaml-ocamlnet/ocamlnet-ocaml310.patch?revision=1.1
10
Signed-off-by: Stefano Zacchiroli <zack@debian.org>
12
src/equeue-gtk1/uq_gtk.ml | 7 ++++++-
13
1 files changed, 6 insertions(+), 1 deletions(-)
15
diff --git a/src/equeue-gtk1/uq_gtk.ml b/src/equeue-gtk1/uq_gtk.ml
16
index ac99a2d..9b2c348 100644
17
--- a/src/equeue-gtk1/uq_gtk.ml
18
+++ b/src/equeue-gtk1/uq_gtk.ml
23
+(* Ugly hack required to compile under OCaml 3.10. This unmarshals
24
+ * `IN. IN is a reserved word for Camlp4.Macro.
26
+let __in = (Marshal.from_string "\132\149\166\190\000\000\000\003\000\000\000\000\000\000\000\000\000\000\000\000\001?\229" 0 : GMain.Io.condition)
29
type event_id = GMain.Io.event_source
31
@@ -147,7 +152,7 @@ object (self)
32
gtk_event_source_hup = None; } in
33
( match g.gtk_event_source_in with
35
- g.gtk_event_source_in <- Some(mk_handler `IN [fd] [] []);
36
+ g.gtk_event_source_in <- Some(mk_handler __in [fd] [] []);
37
| Some s when not i ->
39
g.gtk_event_source_in <- None