pkgsrc/time/ocaml-mtime/patches/patch-src-jsoo_mtime__clock.ml
jaapb ca75b4d4ab Added time/ocaml-mtime, a monotonic wall clock library for OCaml.
This is needed as a dependency for some options of ocaml-git.
2019-07-01 16:06:55 +00:00

14 lines
475 B
OCaml

$NetBSD: patch-src-jsoo_mtime__clock.ml,v 1.1 2019/07/01 16:06:55 jaapb Exp $
Correctly include Js_of_ocaml module
--- src-jsoo/mtime_clock.ml.orig 2017-06-24 16:14:03.000000000 +0000
+++ src-jsoo/mtime_clock.ml
@@ -4,6 +4,8 @@
mtime v1.1.0
---------------------------------------------------------------------------*)
+open Js_of_ocaml
+
let us_to_ns = 1000L (* microsecond to nanosecond uint64 multiplier *)
(* Get a handle on JavaScript's performance.now *)