Some problems building winsock.so
Marcus Meissner
marcus at jet.franken.de
Sun Mar 24 15:31:48 CST 2002
On Sun, Mar 24, 2002 at 09:41:03PM +0100, Lionel Ulmer wrote:
> Hi all,
>
> Seems that there is an include missing now in the 'socket.c' file in
> dlls/winsock as it does not find the definition of 'struct timeval'.
>
> I fixed it by adding in my tree a #include <sys/time.h> but I wonder if this
> is the right 'portable' way to do it (otherwise, why would autoconf check
> for time.h and sys/time.h problems :-) ).
I sent:
Ciao, Marcus
Index: socket.c
===================================================================
RCS file: /home/wine/wine/dlls/winsock/socket.c,v
retrieving revision 1.84
diff -u -r1.84 socket.c
--- socket.c 23 Mar 2002 20:43:52 -0000 1.84
+++ socket.c 24 Mar 2002 17:07:22 -0000
@@ -96,6 +96,10 @@
# define HAVE_IPX
#endif
+#ifdef HAVE_SYS_TIME_H
+# include <sys/time.h>
+#endif
+
#include "wine/winbase16.h"
#include "wingdi.h"
#include "winuser.h"
More information about the wine-devel
mailing list