<pre style='margin:0'>
Chris Jones (cjones051073) pushed a commit to branch sysconf-wrap-always-defined
in repository macports-legacy-support.

</pre>
<p><a href="https://github.com/macports/macports-legacy-support/commit/8f5629a76f9435a2da0d2d7948bfa73107e23376">https://github.com/macports/macports-legacy-support/commit/8f5629a76f9435a2da0d2d7948bfa73107e23376</a></p>
<pre style="white-space: pre; background: #F8F8F8"><span style='display:block; white-space:pre;color:#808000;'>commit 8f5629a76f9435a2da0d2d7948bfa73107e23376
</span>Author: Chris Jones <jonesc@hep.phy.cam.ac.uk>
AuthorDate: Mon May 11 17:31:20 2020 +0100

<span style='display:block; white-space:pre;color:#404040;'>    Small tweak to sysconf support to make symbol for _macports_legacy_sysconf always available
</span>---
 src/macports_legacy_sysconf.c | 11 +++++------
 1 file changed, 5 insertions(+), 6 deletions(-)

<span style='display:block; white-space:pre;color:#808080;'>diff --git a/src/macports_legacy_sysconf.c b/src/macports_legacy_sysconf.c
</span><span style='display:block; white-space:pre;color:#808080;'>index 52f16c7..5219c6e 100644
</span><span style='display:block; white-space:pre;background:#e0e0ff;'>--- a/src/macports_legacy_sysconf.c
</span><span style='display:block; white-space:pre;background:#e0e0ff;'>+++ b/src/macports_legacy_sysconf.c
</span><span style='display:block; white-space:pre;background:#e0e0e0;'>@@ -17,14 +17,10 @@
</span> /* MP support header */
 #include "MacportsLegacySupport.h"
 
<span style='display:block; white-space:pre;background:#ffe0e0;'>-/* sysconf wrap, 10.4 */
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>-#if __MP_LEGACY_SUPPORT_SYSCONF_WRAP__
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>-
</span> /* we need this blocker so as to not get caught in our own wrap */
 #undef __DISABLE_MP_LEGACY_SUPPORT_SYSCONF_WRAP__
 #define __DISABLE_MP_LEGACY_SUPPORT_SYSCONF_WRAP__ 1
 
<span style='display:block; white-space:pre;background:#ffe0e0;'>-
</span> #include <sys/types.h>
 #include <sys/sysctl.h>
 
<span style='display:block; white-space:pre;background:#e0e0e0;'>@@ -36,6 +32,9 @@
</span> 
 long __MP_LEGACY_WRAPPER(sysconf)(int name){
 
<span style='display:block; white-space:pre;background:#e0ffe0;'>+/* sysconf wrap */
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+#if __MP_LEGACY_SUPPORT_SYSCONF_WRAP__
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+
</span> #if __MP_LEGACY_SUPPORT_SYSCONF_WRAP_NEED_SC_NPROCESSORS_ONLN__
     if ( name == _SC_NPROCESSORS_ONLN ) {
 
<span style='display:block; white-space:pre;background:#e0e0e0;'>@@ -88,9 +87,9 @@ long __MP_LEGACY_WRAPPER(sysconf)(int name){
</span>     }
 #endif
 
<span style='display:block; white-space:pre;background:#e0ffe0;'>+#endif /*__MP_LEGACY_SUPPORT_SYSCONF_WRAP__*/
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+
</span>     /* for any other values of "name", call the real sysconf() */
       return (long)sysconf(name);
 }
 
<span style='display:block; white-space:pre;background:#ffe0e0;'>-
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>-#endif /*__MP_LEGACY_SUPPORT_SYSCONF_WRAP__*/
</span></pre><pre style='margin:0'>

</pre>