From 2bf01d439cbbf346c333043ec0c82e6d5ef62ee2 Mon Sep 17 00:00:00 2001 From: Pau Espin Pedrol Date: Mon, 10 Dec 2018 10:59:13 +0100 Subject: stats.h: Fix build on MacOS Otherwise struct osmo_stats_config is not defined and compiler fails. Related: OS#3722 Change-Id: I037c3ca141ecee2d457e0a881a56e32ee24cec4d --- include/osmocom/core/stats.h | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/include/osmocom/core/stats.h b/include/osmocom/core/stats.h index e4d46baf..e01016d4 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 #include @@ -141,5 +141,5 @@ int osmo_stats_reporter_send_buffer(struct osmo_stats_reporter *srep); 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__ */ /*! @} */ -- cgit v1.2.3