diff --git a/sys/include/net/sock/util.h b/sys/include/net/sock/util.h
index cacee59912b7eefb19ab9ca5d82920467e248dbd..cb5f808559c0ffcdcf6de654c2337f1eda9fbb6f 100644
--- a/sys/include/net/sock/util.h
+++ b/sys/include/net/sock/util.h
@@ -26,6 +26,7 @@
 #define NET_SOCK_UTIL_H
 
 #include <stdbool.h>
+#include <stdint.h>
 
 #include "net/sock/udp.h"
 
diff --git a/sys/net/sock/sock_util.c b/sys/net/sock/sock_util.c
index 6f52a25ccb7937742de0e8774e9ede2f5152774b..084180343e8a1de657ef1eb045bc2b1487f6bf7d 100644
--- a/sys/net/sock/sock_util.c
+++ b/sys/net/sock/sock_util.c
@@ -22,6 +22,7 @@
 #include <arpa/inet.h>
 #include <errno.h>
 #include <stdio.h>
+#include <stdlib.h>
 #include <string.h>
 
 #include "net/sock/udp.h"