http://bugs.freeciv.org/Ticket/Display.html?id=40281 >
2008/6/15 Marko Lindqvist:
>
> $subject
- Fixed also client side
- ML
diff -Nurd -X.diff_ignore freeciv/client/servers.c freeciv/client/servers.c
--- freeciv/client/servers.c 2007-08-20 01:35:26.0 +0300
+++ freeciv/client/servers.c 2008-06-18 17:40:08.0 +0300
@@ -533,7 +533,11 @@
union my_sockaddr addr;
struct data_out dout;
int sock, opt = 1;
+#ifndef HAVE_WINSOCK
unsigned char buffer[MAX_LEN_PACKET];
+#else /* HAVE_WINSOCK */
+ char buffer[MAX_LEN_PACKET];
+#endif /* HAVE_WINSOCK */
struct ip_mreq mreq;
const char *group;
size_t size;
diff -Nurd -X.diff_ignore freeciv/server/sernet.c freeciv/server/sernet.c
--- freeciv/server/sernet.c 2008-05-06 02:52:10.0 +0300
+++ freeciv/server/sernet.c 2008-06-18 17:07:10.0 +0300
@@ -1132,7 +1132,11 @@
/
static void send_lanserver_response(void)
{
+#ifndef HAVE_WINSOCK
unsigned char buffer[MAX_LEN_PACKET];
+#else /* HAVE_WINSOCK */
+ char buffer[MAX_LEN_PACKET];
+#endif /* HAVE_WINSOCK */
char hostname[512];
char port[256];
char version[256];
___
Freeciv-dev mailing list
Freeciv-dev@gna.org
https://mail.gna.org/listinfo/freeciv-dev