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:
Richard W.M. Jones
2017-04-11 08:29:47 +01:00
parent dac5fc53ac
commit bb846887de

View File

@@ -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'