Windows compile fix.
authorAdam Dickmeiss <adam@indexdata.dk>
Wed, 30 Aug 2006 12:47:23 +0000 (12:47 +0000)
committerAdam Dickmeiss <adam@indexdata.dk>
Wed, 30 Aug 2006 12:47:23 +0000 (12:47 +0000)
src/tcpip.c

index 5168c77..f232601 100644 (file)
@@ -2,7 +2,7 @@
  * Copyright (C) 1995-2005, Index Data ApS
  * See the file LICENSE for details.
  *
  * Copyright (C) 1995-2005, Index Data ApS
  * See the file LICENSE for details.
  *
- * $Id: tcpip.c,v 1.20 2006-08-30 12:04:43 adam Exp $
+ * $Id: tcpip.c,v 1.21 2006-08-30 12:47:23 adam Exp $
  */
 /**
  * \file tcpip.c
  */
 /**
  * \file tcpip.c
@@ -248,7 +248,11 @@ int tcpip_strtoaddr_ex(const char *str, struct sockaddr_in *add,
 #endif
     char *p, buf[512];
     short int port = default_port;
 #endif
     char *p, buf[512];
     short int port = default_port;
+#ifdef WIN32
+       unsigned long tmpadd;
+#else
     in_addr_t tmpadd;
     in_addr_t tmpadd;
+#endif
 
     if (!tcpip_init ())
         return 0;
 
     if (!tcpip_init ())
         return 0;