<pre style='margin:0'>
Ken (kencu) pushed a commit to branch master
in repository macports-legacy-support.
</pre>
<p><a href="https://github.com/macports/macports-legacy-support/commit/270e8dfee0e670803ad623da44aee679805dd300">https://github.com/macports/macports-legacy-support/commit/270e8dfee0e670803ad623da44aee679805dd300</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 270e8df add proper guards around typedefs
</span>270e8df is described below
<span style='display:block; white-space:pre;color:#808000;'>commit 270e8dfee0e670803ad623da44aee679805dd300
</span>Author: Ken Cunningham <ken.cunningham.webuse@gmail.com>
AuthorDate: Mon Dec 3 23:26:01 2018 -0800
<span style='display:block; white-space:pre;color:#404040;'> add proper guards around typedefs
</span><span style='display:block; white-space:pre;color:#404040;'>
</span><span style='display:block; white-space:pre;color:#404040;'> to avoid redefinition errors on older compilers
</span>---
include/stdio.h | 17 +++++++++++++++--
include/stdlib.h | 15 ++++++++++++++-
include/sys/stdio.h | 16 +++++++++++++++-
include/sys/unistd.h | 28 +++++++++++++++++++++++-----
4 files changed, 67 insertions(+), 9 deletions(-)
<span style='display:block; white-space:pre;color:#808080;'>diff --git a/include/stdio.h b/include/stdio.h
</span><span style='display:block; white-space:pre;color:#808080;'>index c317914..f0865fd 100644
</span><span style='display:block; white-space:pre;background:#e0e0ff;'>--- a/include/stdio.h
</span><span style='display:block; white-space:pre;background:#e0e0ff;'>+++ b/include/stdio.h
</span><span style='display:block; white-space:pre;background:#e0e0e0;'>@@ -27,8 +27,21 @@
</span>
/* getline */
#if __MP_LEGACY_SUPPORT_GETLINE__
<span style='display:block; white-space:pre;background:#ffe0e0;'>-/* #include <unistd.h> */ /* ssize_t */
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>-typedef long ssize_t;
</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;'>+ * [XSI] The ssize_t and size_t types shall be defined as described
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ * in <sys/types.h>.
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ */
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+#ifndef _SIZE_T
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+#define _SIZE_T
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+typedef __darwin_size_t size_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> #ifdef __cplusplus
extern "C" {
#endif
<span style='display:block; white-space:pre;color:#808080;'>diff --git a/include/stdlib.h b/include/stdlib.h
</span><span style='display:block; white-space:pre;color:#808080;'>index 2e5aaf9..08d861a 100644
</span><span style='display:block; white-space:pre;background:#e0e0ff;'>--- a/include/stdlib.h
</span><span style='display:block; white-space:pre;background:#e0e0ff;'>+++ b/include/stdlib.h
</span><span style='display:block; white-space:pre;background:#e0e0e0;'>@@ -28,7 +28,20 @@
</span> /* posix_memalign */
#if __MP_LEGACY_SUPPORT_POSIX_MEMALIGN__
<span style='display:block; white-space:pre;background:#ffe0e0;'>-typedef long ssize_t;
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+/*
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ * [XSI] The ssize_t and size_t types shall be defined as described
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ * in <sys/types.h>.
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ */
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+#ifndef _SIZE_T
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+#define _SIZE_T
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+typedef __darwin_size_t size_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> #ifdef __cplusplus
extern "C" {
#endif
<span style='display:block; white-space:pre;color:#808080;'>diff --git a/include/sys/stdio.h b/include/sys/stdio.h
</span><span style='display:block; white-space:pre;color:#808080;'>index 0aba54d..fa1a283 100644
</span><span style='display:block; white-space:pre;background:#e0e0ff;'>--- a/include/sys/stdio.h
</span><span style='display:block; white-space:pre;background:#e0e0ff;'>+++ b/include/sys/stdio.h
</span><span style='display:block; white-space:pre;background:#e0e0e0;'>@@ -27,7 +27,21 @@
</span>
/* renameat */
#if __MP_LEGACY_SUPPORT_ATCALLS__
<span style='display:block; white-space:pre;background:#ffe0e0;'>-typedef long ssize_t;
</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;'>+ * [XSI] The ssize_t and size_t types shall be defined as described
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ * in <sys/types.h>.
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ */
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+#ifndef _SIZE_T
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+#define _SIZE_T
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+typedef __darwin_size_t size_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> #ifdef __cplusplus
extern "C" {
#endif
<span style='display:block; white-space:pre;color:#808080;'>diff --git a/include/sys/unistd.h b/include/sys/unistd.h
</span><span style='display:block; white-space:pre;color:#808080;'>index 00dab38..66ed768 100644
</span><span style='display:block; white-space:pre;background:#e0e0ff;'>--- a/include/sys/unistd.h
</span><span style='display:block; white-space:pre;background:#e0e0ff;'>+++ b/include/sys/unistd.h
</span><span style='display:block; white-space:pre;background:#e0e0e0;'>@@ -29,11 +29,29 @@
</span>
#if __MP_LEGACY_SUPPORT_ATCALLS__
<span style='display:block; white-space:pre;background:#ffe0e0;'>-/* typedefs to prevent loading many headers */
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>-typedef long ssize_t;
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>-typedef unsigned long size_t;
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>-typedef __uint32_t uid_t;
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>-typedef __uint32_t gid_t;
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+/*
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ * [XSI] The ssize_t and size_t types shall be defined as described
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ * in <sys/types.h>.
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ */
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+#ifndef _SIZE_T
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+#define _SIZE_T
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+typedef __darwin_size_t size_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;'>+#ifndef _UID_T
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+#define _UID_T
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+typedef __darwin_uid_t uid_t; /* user id */
</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 _GID_T
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+#define _GID_T
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+typedef __darwin_gid_t gid_t;
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+#endif
</span>
#ifdef __cplusplus
extern "C" {
</pre><pre style='margin:0'>
</pre>