cURL / Mailing Lists / curl-library / Single Mail

curl-library

Re: Some fixes for cmake build.

From: tetetest tetetest <tetetest_at_rambler.ru>
Date: Tue, 30 Mar 2010 14:52:20 +0400

Hi all again.

> Dilemma: socklen_t can only be used when winsock2.h is included. In
turn,
> winsock2.h cannot always be included even if it is present in the
system.

I looked into curlbuild.h.dist - for windows platforms (both win32 and
64, and
even WinCE) socklen_t is 'int'. So be it: I will force socklen_t to be
'int' on
windows, and avoid the need to include <winsock2.h> in curlbuild.h
altogether.

--
Best regards.
-------------------------------------------------------------------
List admin: http://cool.haxx.se/list/listinfo/curl-library
Etiquette:  http://curl.haxx.se/mail/etiquette.html
Received on 2010-03-30