Skip to content
This repository has been archived by the owner on Oct 18, 2020. It is now read-only.

for compiler version 4.04, set OCAML_OS_TYPE to "xen" #178

Merged
merged 1 commit into from
Jan 18, 2017
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions xen-ocaml/build.sh
Original file line number Diff line number Diff line change
Expand Up @@ -55,6 +55,7 @@ case `ocamlopt -version` in
echo Applying OCaml 4.04 config
cp config/version-404.h ocaml-src/byterun/caml/version.h
patch < clambda-warnings.patch -p 0
patch < os-type-xen.patch -p 0
esac

cp config/s.h ocaml-src/config/
Expand Down
10 changes: 10 additions & 0 deletions xen-ocaml/os-type-xen.patch
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
define OCAML_OS_TYPE as "xen". Only a good idea for compiler versions >= 4.04.0.
See https://github.com/mirage/mirage-platform/pull/78/ .
--- config/s.h
+++ config/s.h
@@ -1,4 +1,4 @@
-#define OCAML_OS_TYPE "Unix"
+#define OCAML_OS_TYPE "xen"
#define OCAML_STDLIB_DIR "/usr/local/lib/ocaml"
#define POSIX_SIGNALS
//#define HAS_GETRUSAGE