<pre style='margin:0'>
Ken (kencu) pushed a commit to branch tigersysaiofix
in repository macports-legacy-support.
</pre>
<p><a href="https://github.com/macports/macports-legacy-support/commit/113d886334a8d48da57f7f7884eb05d990e00ed3">https://github.com/macports/macports-legacy-support/commit/113d886334a8d48da57f7f7884eb05d990e00ed3</a></p>
<pre style="white-space: pre; background: #F8F8F8"><span style='display:block; white-space:pre;color:#808000;'>commit 113d886334a8d48da57f7f7884eb05d990e00ed3
</span>Author: Ken Cunningham <kencu@macports.org>
AuthorDate: Wed Nov 4 20:35:16 2020 -0800
<span style='display:block; white-space:pre;color:#404040;'> fix <sys/aio.h> for Tiger
</span><span style='display:block; white-space:pre;color:#404040;'>
</span><span style='display:block; white-space:pre;color:#404040;'> adds an include and several defs that were added
</span><span style='display:block; white-space:pre;color:#404040;'> to this file in Leopard and beyond that current
</span><span style='display:block; white-space:pre;color:#404040;'> software expects to find (eg mpich).
</span>---
README.md | 5 ++++
include/MacportsLegacySupport.h | 3 +++
include/sys/aio.h | 58 +++++++++++++++++++++++++++++++++++++++++
3 files changed, 66 insertions(+)
<span style='display:block; white-space:pre;color:#808080;'>diff --git a/README.md b/README.md
</span><span style='display:block; white-space:pre;color:#808080;'>index f1aa458..8954adc 100644
</span><span style='display:block; white-space:pre;background:#e0e0ff;'>--- a/README.md
</span><span style='display:block; white-space:pre;background:#e0e0ff;'>+++ b/README.md
</span><span style='display:block; white-space:pre;background:#e0e0e0;'>@@ -90,6 +90,11 @@ Wrapped headers and replaced functions are:
</span> <td>Adds <code>wcscasecmp_l</code>, <code>wcsncasecmp_l</code> functions</td>
<td>OSX10.6</td>
</tr>
<span style='display:block; white-space:pre;background:#e0ffe0;'>+ <tr>
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ <td><code>sys/aio.h</code></td>
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ <td>Adjusts includes and defines to match SDK 10.5+</td>
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ <td>OSX10.4</td>
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ </tr>
</span> <tr>
<td rowspan="2"><code>sys/fcntl.h</code></td>
<td>Adds missing <code>O_CLOEXEC</code>, <code>AT_FDCWD</code>, <code>AT_EACCESS</code>,
<span style='display:block; white-space:pre;color:#808080;'>diff --git a/include/MacportsLegacySupport.h b/include/MacportsLegacySupport.h
</span><span style='display:block; white-space:pre;color:#808080;'>index f60a62b..bc3a861 100644
</span><span style='display:block; white-space:pre;background:#e0e0ff;'>--- a/include/MacportsLegacySupport.h
</span><span style='display:block; white-space:pre;background:#e0e0ff;'>+++ b/include/MacportsLegacySupport.h
</span><span style='display:block; white-space:pre;background:#e0e0e0;'>@@ -102,6 +102,9 @@
</span> /* lutimes does not exist on Tiger */
#define __MP_LEGACY_SUPPORT_LUTIMES__ (__APPLE__ && __ENVIRONMENT_MAC_OS_X_VERSION_MIN_REQUIRED__ < 1050)
<span style='display:block; white-space:pre;background:#e0ffe0;'>+/* sys/aio.h header needs adjustment to match newer SDKs */
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+#define __MP_LEGACY_SUPPORT_SYSAIOTIGERFIX__ (__APPLE__ && __ENVIRONMENT_MAC_OS_X_VERSION_MIN_REQUIRED__ < 1050)
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+
</span> /* sysconf() is missing some functions on some systems */
#define __MP_LEGACY_SUPPORT_SYSCONF_WRAP__ (__APPLE__ && __ENVIRONMENT_MAC_OS_X_VERSION_MIN_REQUIRED__ < 101100)
<span style='display:block; white-space:pre;color:#808080;'>diff --git a/include/sys/aio.h b/include/sys/aio.h
</span>new file mode 100644
<span style='display:block; white-space:pre;color:#808080;'>index 0000000..6af04f7
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>--- /dev/null
</span><span style='display:block; white-space:pre;background:#e0e0ff;'>+++ b/include/sys/aio.h
</span><span style='display:block; white-space:pre;background:#e0e0e0;'>@@ -0,0 +1,58 @@
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+/*
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ * Copyright (c) 2020 Ken Cunningham <kencu@macports.org>
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ *
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ * Permission to use, copy, modify, and distribute this software for any
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ * purpose with or without fee is hereby granted, provided that the above
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ * copyright notice and this permission notice appear in all copies.
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ *
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ * THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ * WITH REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ * MERCHANTABILITY AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ * ANY SPECIAL, DIRECT, INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ * WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR PROFITS, WHETHER IN AN
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ * ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING OUT OF
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ * OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ */
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+#ifndef _MACPORTS_SYS_AIO_H_
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+#define _MACPORTS_SYS_AIO_H_
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+/* MP support header */
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+#include "MacportsLegacySupport.h"
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+/* in the MacOSX10.4.sdk, several definitions are missing that are included
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ in later SDKs. This causes software written to the later SDKs to fail,
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ for example mpich. This fix includes the headers in the order used in
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ later SDKs, and adds the two missing definitions prior to calling the
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ usual header.
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ The alternate method here would be to copy in the header from the
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ MacOSX10.4.sdk and patch it in place, as is done in gcc. We may do that
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ in the end, if it turns out to be less intrusive.
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+*/
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+#if __MP_LEGACY_SUPPORT_SYSAIOTIGERFIX__
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+#include <sys/signal.h>
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+#include <sys/_types.h>
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+#include <sys/cdefs.h>
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+#ifndef _OFF_T
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+typedef __darwin_off_t off_t;
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+#define _OFF_T
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+#endif
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+#ifndef _SSIZE_T
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+#define _SSIZE_T
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+typedef __darwin_ssize_t ssize_t;
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+#endif
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+#endif /* __MP_LEGACY_SUPPORT_SYSAIOTIGERFIX__ */
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+/* Include the primary system sys/aio.h */
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+#include_next <sys/aio.h>
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+#endif /* _MACPORTS_SYS_AIO_H_ */
</span></pre><pre style='margin:0'>
</pre>