<p>Pau Espin Pedrol has uploaded this change for <strong>review</strong>.</p><p><a href="https://gerrit.osmocom.org/12212">View Change</a></p><pre style="font-family: monospace,monospace; white-space: pre-wrap;">stats.h: Fix build on MacOS<br><br>Otherwise struct osmo_stats_config is not defined and compiler fails.<br><br>Related: OS#3722<br>Change-Id: I037c3ca141ecee2d457e0a881a56e32ee24cec4d<br>---<br>M include/osmocom/core/stats.h<br>1 file changed, 2 insertions(+), 2 deletions(-)<br><br></pre><pre style="font-family: monospace,monospace; white-space: pre-wrap;">git pull ssh://gerrit.osmocom.org:29418/libosmocore refs/changes/12/12212/1</pre><pre style="font-family: monospace,monospace; white-space: pre-wrap;"><span>diff --git a/include/osmocom/core/stats.h b/include/osmocom/core/stats.h</span><br><span>index e4d46ba..e01016d 100644</span><br><span>--- a/include/osmocom/core/stats.h</span><br><span>+++ b/include/osmocom/core/stats.h</span><br><span>@@ -28,7 +28,7 @@</span><br><span>  * embedded systems.  We cannot use the autoconf-defined HAVE_... macros</span><br><span>  * here, as that only works at library compile time, not at application</span><br><span>  * compile time */</span><br><span style="color: hsl(0, 100%, 40%);">-#ifdef unix</span><br><span style="color: hsl(120, 100%, 40%);">+#if defined(unix) || defined(__APPLE__)</span><br><span> </span><br><span> #include <sys/socket.h></span><br><span> #include <arpa/inet.h></span><br><span>@@ -141,5 +141,5 @@</span><br><span> int osmo_stats_reporter_udp_open(struct osmo_stats_reporter *srep);</span><br><span> int osmo_stats_reporter_udp_close(struct osmo_stats_reporter *srep);</span><br><span> </span><br><span style="color: hsl(0, 100%, 40%);">-#endif /* unix */</span><br><span style="color: hsl(120, 100%, 40%);">+#endif /* unix || __APPLE__ */</span><br><span> /*! @} */</span><br><span></span><br></pre><p>To view, visit <a href="https://gerrit.osmocom.org/12212">change 12212</a>. To unsubscribe, or for help writing mail filters, visit <a href="https://gerrit.osmocom.org/settings">settings</a>.</p><div itemscope itemtype="http://schema.org/EmailMessage"><div itemscope itemprop="action" itemtype="http://schema.org/ViewAction"><link itemprop="url" href="https://gerrit.osmocom.org/12212"/><meta itemprop="name" content="View Change"/></div></div>

<div style="display:none"> Gerrit-Project: libosmocore </div>
<div style="display:none"> Gerrit-Branch: master </div>
<div style="display:none"> Gerrit-MessageType: newchange </div>
<div style="display:none"> Gerrit-Change-Id: I037c3ca141ecee2d457e0a881a56e32ee24cec4d </div>
<div style="display:none"> Gerrit-Change-Number: 12212 </div>
<div style="display:none"> Gerrit-PatchSet: 1 </div>
<div style="display:none"> Gerrit-Owner: Pau Espin Pedrol <pespin@sysmocom.de> </div>