summaryrefslogtreecommitdiffstats
path: root/include/osmocom/core/stats.h
diff options
context:
space:
mode:
Diffstat (limited to 'include/osmocom/core/stats.h')
-rw-r--r--include/osmocom/core/stats.h4
1 files 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 <sys/socket.h>
#include <arpa/inet.h>
@@ -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__ */
/*! @} */