diff --git a/configure b/configure
index 0c949c4f356375444ded3650c60130bfbd2664c3..d4242afcaac5279d60659c1489dce370a7fc6c27 100755
--- a/configure
+++ b/configure
@@ -1960,7 +1960,7 @@ texi2html -version > /dev/null 2>&1 && enable texi2html || disable texi2html
 # Network check
 
 if enabled network; then
-    check_type sys/socket.h socklen_t
+    check_type "sys/types.h sys/socket.h" socklen_t
     # Prefer arpa/inet.h over winsock2
     if check_header arpa/inet.h ; then
         check_func closesocket