bug-gnulib
[Top][All Lists]
Advanced

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

Re: ws2tcpip.h include bug


From: Bruno Haible
Subject: Re: ws2tcpip.h include bug
Date: Sun, 2 May 2010 10:11:24 +0200
User-agent: KMail/1.9.9

Hi,

Ozkan Sezer wrote:
> The config header checks for windows' ws2tcpip.h have a little bug where
> they do not include winsock2.h before ws2tcpip.h: ws2tcpip.h requires
> winsock2.h to be included before, a plain AC_CHECK_HEADERS([ws2tcpip.h])
> like in current m4/sys_socket_h.m4 may fail to detect the header's
> presence. A solution may be changing the CFLAGS temporarily by adding
> "-include winsock2.h" to it.

Which platform are you talking about? On mingw (both the one in Cygwin 1.5.x
as well as the one in Cygwin 1.7.2) a file

  #include "ws2tcpip.h"

compiles fine: $ gcc -mno-cygwin -c foo.c

And what are the errors that you get when you do this on your platform?

Bruno




reply via email to

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