<pre style='margin:0'>
Ken (kencu) pushed a commit to branch master
in repository macports-ports.
</pre>
<p><a href="https://github.com/macports/macports-ports/commit/d9b58e3696e26d6cce16c02a6028ee75a7bdcc18">https://github.com/macports/macports-ports/commit/d9b58e3696e26d6cce16c02a6028ee75a7bdcc18</a></p>
<pre style="white-space: pre; background: #F8F8F8">The following commit(s) were added to refs/heads/master by this push:
<span style='display:block; white-space:pre;color:#404040;'> new d9b58e3696e libxmi: fix missing includes of stdlib.h
</span>d9b58e3696e is described below
<span style='display:block; white-space:pre;color:#808000;'>commit d9b58e3696e26d6cce16c02a6028ee75a7bdcc18
</span>Author: Michael Lass <michael.lass@uni-paderborn.de>
AuthorDate: Tue Dec 22 20:24:47 2020 +0100
<span style='display:block; white-space:pre;color:#404040;'> libxmi: fix missing includes of stdlib.h
</span><span style='display:block; white-space:pre;color:#404040;'>
</span><span style='display:block; white-space:pre;color:#404040;'> Without this patch, build fails on macOS 11 Big Sur.
</span>---
graphics/libxmi/Portfile | 2 ++
graphics/libxmi/files/patch-missing-stdlib.diff | 23 +++++++++++++++++++++++
2 files changed, 25 insertions(+)
<span style='display:block; white-space:pre;color:#808080;'>diff --git a/graphics/libxmi/Portfile b/graphics/libxmi/Portfile
</span><span style='display:block; white-space:pre;color:#808080;'>index 740c21e6349..9d149dd1f13 100644
</span><span style='display:block; white-space:pre;background:#e0e0ff;'>--- a/graphics/libxmi/Portfile
</span><span style='display:block; white-space:pre;background:#e0e0ff;'>+++ b/graphics/libxmi/Portfile
</span><span style='display:block; white-space:pre;background:#e0e0e0;'>@@ -18,3 +18,5 @@ checksums md5 4e6935484f0ad71b531920bf4c546b47 \
</span> rmd160 6622ed9793605380c8f55f93bf953182fff07dd4
configure.args --infodir=${prefix}/share/info
<span style='display:block; white-space:pre;background:#e0ffe0;'>+
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+patchfiles patch-missing-stdlib.diff
</span><span style='display:block; white-space:pre;color:#808080;'>diff --git a/graphics/libxmi/files/patch-missing-stdlib.diff b/graphics/libxmi/files/patch-missing-stdlib.diff
</span>new file mode 100644
<span style='display:block; white-space:pre;color:#808080;'>index 00000000000..0af8dcd4996
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>--- /dev/null
</span><span style='display:block; white-space:pre;background:#e0e0ff;'>+++ b/graphics/libxmi/files/patch-missing-stdlib.diff
</span><span style='display:block; white-space:pre;background:#e0e0e0;'>@@ -0,0 +1,23 @@
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+--- mi_alloc.c
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>++++ mi_alloc.c
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+@@ -9,6 +9,8 @@
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ #include "mi_spans.h"
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ #include "mi_api.h"
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>++#include <stdlib.h>
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>++
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ /* wrapper for malloc() */
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ voidptr_t
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ #ifdef _HAVE_PROTOS
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+--- mi_arc.c
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>++++ mi_arc.c
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+@@ -29,6 +29,8 @@
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ #include "mi_fply.h" /* for miFillSppPoly() */
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ #include "mi_fllarc.h" /* for MIWIDEARCSETUP, MIFILLINARCSTEP etc. */
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>++#include <stdlib.h>
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>++
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ /* undefine if cbrt(), a fast cube root function for non-negative
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ arguments, is available */
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ #define cbrt(x) pow((x), 1.0/3.0)
</span></pre><pre style='margin:0'>
</pre>