diff --git a/configure.ac b/configure.ac index a3b7fd41..d28c5918 100644 --- a/configure.ac +++ b/configure.ac @@ -727,7 +727,11 @@ AC_CHECK_TYPES([struct linger],,, AC_MSG_CHECKING([for socklen_t]) AC_TRY_COMPILE([ #include - #include ], + #ifdef _WIN32 + #include + #else + #include + #endif], [socklen_t x;], AC_MSG_RESULT([yes]), [AC_MSG_RESULT([no])