aboutsummaryrefslogtreecommitdiff
path: root/gdb/configure.ac
diff options
context:
space:
mode:
Diffstat (limited to 'gdb/configure.ac')
-rw-r--r--gdb/configure.ac9
1 files changed, 8 insertions, 1 deletions
diff --git a/gdb/configure.ac b/gdb/configure.ac
index f9461b2..3bec215 100644
--- a/gdb/configure.ac
+++ b/gdb/configure.ac
@@ -1248,6 +1248,9 @@ AC_CHECK_HEADERS(term.h, [], [],
#endif
])
+AC_CHECK_HEADERS([sys/sockets.h])
+AC_CHECK_HEADERS([ws2tcpip.h])
+
# ------------------------- #
# Checks for declarations. #
# ------------------------- #
@@ -1263,7 +1266,11 @@ AM_LC_MESSAGES
AC_CHECK_TYPES(socklen_t, [], [],
[#include <sys/types.h>
-#include <sys/socket.h>
+#if HAVE_SYS_SOCKET_H
+# include <sys/socket.h>
+#elif HAVE_WS2TCPIP_H
+# include <ws2tcpip.h>
+#endif
])
# ------------------------------------- #