<html><head><meta name="color-scheme" content="light dark"></head><body><pre style="word-wrap: break-word; white-space: pre-wrap;">--- bin/mlton	2018-02-07 18:37:40.000000000 +0800
+++ bin/mlton	2023-07-21 04:00:52.000000000 +0800
@@ -5,7 +5,7 @@
 set -e
 
 dir=`dirname "$0"`
-lib=`cd "$dir/../lib/mlton" &amp;&amp; pwd`
+lib='@MLTON@'
 
 declare -a rargs
 case "$1" in
@@ -57,7 +57,7 @@
     exit 1
 }
 
-CC="gcc"
+CC=@CC@
 
 # You may need to set 'GMP_INC_DIR' so the C compiler can find gmp.h.
 GMP_INC_DIR=""

--- lib/mlton/include/platform/darwin.h	2010-06-08 23:00:43.000000000 +0800
+++ lib/mlton/include/platform/darwin.h	2023-07-21 22:27:28.000000000 +0800
@@ -1,3 +1,7 @@
+#ifndef __STDC_FORMAT_MACROS
+#define __STDC_FORMAT_MACROS
+#endif
+
 #include &lt;fenv.h&gt;
 #include &lt;inttypes.h&gt;
 #include &lt;stdint.h&gt;
@@ -27,6 +31,11 @@
 #include &lt;sys/wait.h&gt;
 #include &lt;syslog.h&gt;
 #include &lt;termios.h&gt;
+
+#ifndef _XOPEN_SOURCE
+#define _XOPEN_SOURCE /* In order for &lt;ucontext.h&gt; to work. */
+#endif
+
 #include &lt;sys/ucontext.h&gt;
 #include &lt;utime.h&gt;
 
</pre></body></html>