]> granicus.if.org Git - curl/commit
cmake: fix struct sockaddr_storage check
authorPeter Wu <peter@lekensteyn.nl>
Fri, 31 Oct 2014 11:32:41 +0000 (12:32 +0100)
committerDaniel Stenberg <daniel@haxx.se>
Mon, 3 Nov 2014 08:10:54 +0000 (09:10 +0100)
commit5565d0ab079b274f4e12d528400308d54df1ffa6
tree0f3c78866b88f1bc291b084a90363a3518cf3502
parent8cb010144964019b865fa224e166eb37f4e1d169
cmake: fix struct sockaddr_storage check

CHECK_TYPE_SIZE_PREINCLUDE is an internal, undocumented variable which
was removed in cmake 2.8.1. According to the MSDN docs[1], inclusion
of winsock2.h is sufficient. WIN32_LEAN_AND_MEAN does not really seem
to affect the tests, so remove it too[2].

For the non-windows case, remove inet headers as POSIX only requires
sys/socket.h.

 [1]: http://msdn.microsoft.com/en-us/library/windows/desktop/ms740504%28v=vs.85%29.aspx
 [2]: http://stackoverflow.com/questions/11040133/what-does-defining-win32-lean-and-mean-exclude-exactly

Signed-off-by: Peter Wu <peter@lekensteyn.nl>
CMake/OtherTests.cmake