summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--include/osmocom/core/stats.h2
-rw-r--r--src/stats.c3
2 files changed, 4 insertions, 1 deletions
diff --git a/include/osmocom/core/stats.h b/include/osmocom/core/stats.h
index 731fdb9b..362d3fb3 100644
--- a/include/osmocom/core/stats.h
+++ b/include/osmocom/core/stats.h
@@ -22,6 +22,8 @@
#include <sys/socket.h>
#include <osmocom/core/linuxlist.h>
+#include <stdint.h>
+
struct msgb;
struct osmo_stat_item_group;
struct osmo_stat_item_desc;
diff --git a/src/stats.c b/src/stats.c
index f979bdc8..a0723702 100644
--- a/src/stats.c
+++ b/src/stats.c
@@ -28,8 +28,9 @@
#include <stdint.h>
#include <errno.h>
#include <stdio.h>
+#include <sys/types.h>
#include <sys/socket.h>
-#include <netinet/ip.h>
+#include <netinet/in.h>
#include <arpa/inet.h>
#include <osmocom/core/utils.h>