Hello, > > Is there something in the standard library that allows me to > > distinguish between oxs and linux (Sys.os_type just returns "Unix" for > > both). we had a similar problem, but finally (ab)used Ocamlbuild_pack.Ocamlbuild_Myocamlbuild_config.system and Ocamlbuild_pack.Ocamlbuild_Myocamlbuild_config.arch in the context of an ocamlbuild script to get the system and the current architecture (32 vs 64 bit). just adapt to your demands.
it's the same variable that it accessible via the "-config" parameter of the ocamltools (ocamlc/ocamlopt/...) shell~> ocamlc -config|grep system please note, that it's not the runtime configuration but the system configuration at compile time of your ocaml distribution. regards, alex _______________________________________________ Caml-list mailing list. Subscription management: http://yquem.inria.fr/cgi-bin/mailman/listinfo/caml-list Archives: http://caml.inria.fr Beginner's list: http://groups.yahoo.com/group/ocaml_beginners Bug reports: http://caml.inria.fr/bin/caml-bugs