--- libdnet-stripped/configure.orig	2025-04-30 19:58:18 UTC
+++ libdnet-stripped/configure
@@ -650,6 +650,9 @@ ac_includes_default="\
 #ifdef HAVE_SYS_STAT_H
 # include <sys/stat.h>
 #endif
+#ifdef HAVE_SYS_SOCKET_H
+# include <sys/socket.h>
+#endif
 #ifdef HAVE_UNISTD_H
 # include <unistd.h>
 #endif"
