mirror of
https://github.com/libguestfs/libguestfs.git
synced 2026-03-22 07:03:38 +00:00
ocaml: Add Bytes.sub_string function to Bytes compat module.
This is only used when OCaml < 4.02 (eg. RHEL 7). For more recent versions the real Bytes.sub_string function is used instead.
This commit is contained in:
@@ -120,6 +120,7 @@ AS_IF([test "x$have_Bytes_module" = "xno"],[
|
||||
include String
|
||||
let of_string = String.copy
|
||||
let to_string = String.copy
|
||||
let sub_string = String.sub
|
||||
EOF
|
||||
ln -s ../generator/bytes.ml mllib/bytes.ml
|
||||
OCAML_GENERATOR_BYTES_COMPAT_CMO='$(top_builddir)/generator/bytes.cmo'
|
||||
|
||||
Reference in New Issue
Block a user