Pau Espin Pedrol has uploaded this change for review. ( https://gerrit.osmocom.org/12212
Change subject: stats.h: Fix build on MacOS ...................................................................... stats.h: Fix build on MacOS Otherwise struct osmo_stats_config is not defined and compiler fails. Related: OS#3722 Change-Id: I037c3ca141ecee2d457e0a881a56e32ee24cec4d --- M include/osmocom/core/stats.h 1 file changed, 2 insertions(+), 2 deletions(-) git pull ssh://gerrit.osmocom.org:29418/libosmocore refs/changes/12/12212/1 diff --git a/include/osmocom/core/stats.h b/include/osmocom/core/stats.h index e4d46ba..e01016d 100644 --- a/include/osmocom/core/stats.h +++ b/include/osmocom/core/stats.h @@ -28,7 +28,7 @@ * embedded systems. We cannot use the autoconf-defined HAVE_... macros * here, as that only works at library compile time, not at application * compile time */ -#ifdef unix +#if defined(unix) || defined(__APPLE__) #include <sys/socket.h> #include <arpa/inet.h> @@ -141,5 +141,5 @@ int osmo_stats_reporter_udp_open(struct osmo_stats_reporter *srep); int osmo_stats_reporter_udp_close(struct osmo_stats_reporter *srep); -#endif /* unix */ +#endif /* unix || __APPLE__ */ /*! @} */ -- To view, visit https://gerrit.osmocom.org/12212 To unsubscribe, or for help writing mail filters, visit https://gerrit.osmocom.org/settings Gerrit-Project: libosmocore Gerrit-Branch: master Gerrit-MessageType: newchange Gerrit-Change-Id: I037c3ca141ecee2d457e0a881a56e32ee24cec4d Gerrit-Change-Number: 12212 Gerrit-PatchSet: 1 Gerrit-Owner: Pau Espin Pedrol <[email protected]>
