<p>Pau Espin Pedrol <strong>merged</strong> this change.</p><p><a href="https://gerrit.osmocom.org/12212">View Change</a></p><div style="white-space:pre-wrap">Approvals:
  Harald Welte: Looks good to me, approved
  Stefan Sperling: Looks good to me, but someone else must approve
  Jenkins Builder: Verified

</div><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;"><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: merged </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: 2 </div>
<div style="display:none"> Gerrit-Owner: Pau Espin Pedrol <pespin@sysmocom.de> </div>
<div style="display:none"> Gerrit-Reviewer: Harald Welte <laforge@gnumonks.org> </div>
<div style="display:none"> Gerrit-Reviewer: Jenkins Builder (1000002) </div>
<div style="display:none"> Gerrit-Reviewer: Pau Espin Pedrol <pespin@sysmocom.de> </div>
<div style="display:none"> Gerrit-Reviewer: Stefan Sperling <stsp@stsp.name> </div>