--- src/platform/posix/posix_udp.c	2024-09-08 06:43:34.000000000 +0800
+++ src/platform/posix/posix_udp.c	2024-10-29 09:20:41.000000000 +0800
@@ -18,6 +18,7 @@
 
 #include <errno.h>
 #include <fcntl.h>
+#include <sys/types.h>
 #include <netinet/in.h>
 #include <string.h>
 #include <sys/socket.h>
