bug-gnubg
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [Bug-gnubg] Win32 compile error: with HAVE_SOCKETS


From: Joern Thyssen
Subject: Re: [Bug-gnubg] Win32 compile error: with HAVE_SOCKETS
Date: Sat, 3 Jan 2004 00:00:58 +0000
User-agent: Mutt/1.4.1i

On Fri, Jan 02, 2004 at 10:17:31PM +0100, Nardy Pillards wrote
> Since 040101 (and HAVE_SOCKETS)
> external.c causes compile error line 573
> (function socklen_t)
> 
> There is a workaround: define socklen_t int
> but perhaps including ws2tcpip.h instead of winsock.h (external.h) 
> would be a solid solution for Win32?
> 
> ws2tcpip.h is included in mingw distribution, does include of 
> winsock2.h and defines to standard Berkeley.
> 
> (if someone wants to look at it, I can send ws2tcpip.h (10 KB))

I'm not familiar with ws2tcpip.h.

Anyway, for simplicity you can just add the following to config.h:

/* Define to `int' if <sys/socket.h> does not define. */
#define socklen_t int
                                                                                
as you suggested yourself.

Jørn

Attachment: pgpOB2v3pDCIa.pgp
Description: PGP signature


reply via email to

[Prev in Thread] Current Thread [Next in Thread]