PATCH for build failure in dlls/winsock/socket.c

Gerald Pfeifer pfeifer at dbai.tuwien.ac.at
Mon Apr 8 00:36:12 CDT 2002


The patch below fixes a problem with

  revision 1.87
  date: 2002/04/05 21:22:55;  author: julliard;  state: Exp;  lines: +229 -193
  Martin Wilck <Martin.Wilck at fujitsu-siemens.com>
  Make the recv() and send() family of functions use WSARecvFrom() and
  WSASendTo().

which causes the following build failure on FreeBSD 4.5-RELEASE:

/usr/bin/gcc -c -I. -I. -I../../include -I../../include  -g -O2 -Wall -mpreferred-stack-boundary=2 -fPIC -D__WINE__ -DUSE_WS_PREFIX -D_REENTRANT -I/usr/X11R6/include -o socket.o socket.c
socket.c: In function `WSASendTo':
socket.c:1990: sizeof applied to an incomplete type
socket.c:2000: arithmetic on pointer to an incomplete type
socket.c:2000: dereferencing pointer to incomplete type
socket.c:2001: arithmetic on pointer to an incomplete type
socket.c:2001: dereferencing pointer to incomplete type
socket.c: In function `WSARecvFrom':
socket.c:3286: sizeof applied to an incomplete type
socket.c:3295: arithmetic on pointer to an incomplete type
socket.c:3295: dereferencing pointer to incomplete type
socket.c:3296: arithmetic on pointer to an incomplete type
socket.c:3296: dereferencing pointer to incomplete type
gmake[2]: *** [socket.o] Error 1
gmake[2]: Leaving directory `/.amd_mnt/vexpert/files8/test/wine/dlls/winsock'
gmake[1]: *** [winsock/ws2_32.dll.so] Error 2
gmake[1]: Leaving directory `/.amd_mnt/vexpert/files8/test/wine/dlls'
gmake: *** [dlls] Error 2

ChangeLog:
  Also #include <sys/uio.h>.
Index: socket.c
===================================================================
RCS file: /home/wine/wine/dlls/winsock/socket.c,v
retrieving revision 1.87
diff -u -3 -p -r1.87 socket.c
--- socket.c	5 Apr 2002 21:22:55 -0000	1.87
+++ socket.c	8 Apr 2002 05:27:42 -0000
@@ -54,6 +54,7 @@
 #ifdef HAVE_SYS_WAIT_H
 # include <sys/wait.h>
 #endif
+#include <sys/uio.h>
 #ifdef HAVE_SYS_SOCKET_H
 #include <sys/socket.h>
 #endif




More information about the wine-patches mailing list