Handle "unknown" ocaml system as Linux
authorStephane Glondu <steph@glondu.net>
Thu, 17 Aug 2023 12:27:20 +0000 (14:27 +0200)
committerStéphane Glondu <glondu@debian.org>
Thu, 17 Aug 2023 12:30:17 +0000 (14:30 +0200)
In Debian, on mipsel and mips64el, ocaml reports system as "unknown".

Gbp-Pq: Name 0001-Handle-unknown-ocaml-system-as-Linux.patch

clock/select/select.ml

index 78b45cfd0b8f1467da3dc4eaa031840bad52af1f..65721368abb7a1618c5733d6b44251c39ddf2225 100644 (file)
@@ -22,7 +22,7 @@ let () =
       | [|_; "--system"; system; "-o"; output|] ->
           let system =
             match system with
-            | "linux" | "elf" -> `Linux
+            | "linux" | "elf" | "unknown" -> `Linux
             | "windows" | "mingw64" | "mingw" | "cygwin" -> `Windows
             | "freebsd" -> `FreeBSD
             | "macosx" -> `MacOSX