void-packages/srcpkgs/xen/patches/ocaml-5.patch

29 lines
884 B
Diff

X-Git-Url: https://xenbits.xen.org/gitweb/?p=xen.git;a=blobdiff_plain;f=tools%2Focaml%2Flibs%2FMakefile;h=89350aa12fdc6dbf0fe461bf7e4644cbb16b8462;hp=5146c524846083f343b5d4c5c2ccbb060dc94a67;hb=e51d31f79edc10f8d622e7f5bf4b935af6d4618f;hpb=bf652a50fb3bb3b1b3d93db6fb79bc28f978fe75
Remove broken libs (like upstream later).
--- xen-4.14.1/tools/ocaml/libs/Makefile
+++ xen-4.14.1/tools/ocaml/libs/Makefile
@@ -3,9 +3,8 @@
SUBDIRS= \
mmap \
- xentoollog \
xc eventchn \
- xb xs xl
+ xb xs
.PHONY: all
all: subdirs-all
--- xen-4.14.1/tools/ocaml/xenstored/disk.ml
+++ xen-4.14.1/tools/ocaml/xenstored/disk.ml
@@ -30,7 +30,7 @@
| _ -> raise (Failure "undecify")
let unhex c =
- let c = Char.lowercase c in
+ let c = Char.lowercase_ascii c in
match c with
| '0' .. '9' -> (Char.code c) - (Char.code '0')
| 'a' .. 'f' -> (Char.code c) - (Char.code 'a') + 10