From: Jonathan Davies Date: Wed, 30 Mar 2016 16:06:39 +0000 (+0000) Subject: oxenstored: allow compilation prior to OCaml 3.12.0 X-Git-Tag: archive/raspbian/4.8.0-1+rpi1~1^2~1449 X-Git-Url: https://dgit.raspbian.org/?a=commitdiff_plain;h=72a91f67714638ea664155ee253bcb02b1c6ae54;p=xen.git oxenstored: allow compilation prior to OCaml 3.12.0 Commit 363ae55c8 used an OCaml feature called record field punning. This broke the build on compilers prior to OCaml 3.12.0. This patch makes no semantic change but now uses backwards-compatible syntax. Signed-off-by: Jonathan Davies Reported-by: Boris Ostrovsky Tested-by: Boris Ostrovsky --- diff --git a/tools/ocaml/xenstored/process.ml b/tools/ocaml/xenstored/process.ml index fb5fdaf0fb..7b60376cdd 100644 --- a/tools/ocaml/xenstored/process.ml +++ b/tools/ocaml/xenstored/process.ml @@ -484,7 +484,7 @@ let do_input store cons doms con = if newpacket then ( let packet = Connection.pop_in con in let tid, rid, ty, data = Xenbus.Xb.Packet.unpack packet in - let req = {Packet.tid; Packet.rid; Packet.ty; Packet.data} in + let req = {Packet.tid=tid; Packet.rid=rid; Packet.ty=ty; Packet.data=data} in (* As we don't log IO, do not call an unnecessary sanitize_data info "[%s] -> [%d] %s \"%s\""