Skip to content

Commit 7947c10

Browse files
committed
Get rid of the dependency on the Unix module
1 parent adde9be commit 7947c10

File tree

2 files changed

+2
-6
lines changed

2 files changed

+2
-6
lines changed

genfft/Makefile.am

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@ gen_hc2cdft.native gen_hc2cdft_c.native gen_hc2hc.native \
1919
gen_mdct.native
2020

2121
all-local::
22-
$(OCAMLBUILD) -classic-display -libs unix,nums $(GENFFT_NATIVE)
22+
$(OCAMLBUILD) -classic-display -libs nums $(GENFFT_NATIVE)
2323

2424
maintainer-clean-local::
2525
$(OCAMLBUILD) -classic-display -clean

genfft/util.ml

Lines changed: 1 addition & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,6 @@
2121

2222
(* various utility functions *)
2323
open List
24-
open Unix
2524

2625
(*****************************************
2726
* Integer operations
@@ -134,10 +133,7 @@ let rec suchthat a pred =
134133
(* print an information message *)
135134
let info string =
136135
if !Magic.verbose then begin
137-
let now = Unix.times ()
138-
and pid = Unix.getpid () in
139-
prerr_string ((string_of_int pid) ^ ": " ^
140-
"at t = " ^ (string_of_float now.tms_utime) ^ " : ");
136+
prerr_string ("at t = " ^ (string_of_float (Sys.time())) ^ " : ");
141137
prerr_string (string ^ "\n");
142138
flush Stdlib.stderr;
143139
end

0 commit comments

Comments
 (0)