changeset 27346:d9dfbe72ad77

Check for socklen_t in ws2tcpip.h as well.
author diego
date Wed, 30 Jul 2008 18:16:57 +0000
parents b597fd2924b4
children 0857839b02b2
files configure
diffstat 1 files changed, 5 insertions(+), 3 deletions(-) [+]
line wrap: on
line diff
--- a/configure	Wed Jul 30 18:07:19 2008 +0000
+++ b/configure	Wed Jul 30 18:16:57 2008 +0000
@@ -2866,11 +2866,13 @@
 
 
 echocheck "socklen_t"
-cat > $TMPC << EOF
-#include <sys/socket.h>
+for header in "sys/socket.h" "ws2tcpip.h" ; do
+  cat > $TMPC << EOF
+#include <$header>
 int main(void) { socklen_t v = 0; return v; }
 EOF
-cc_check && _socklen_t=yes
+  cc_check && _socklen_t=yes && break
+done
 if test "$_socklen_t" = yes ; then
   _def_socklen_t='#define HAVE_SOCKLEN_T 1'
 else