]> granicus.if.org Git - curl/commit
cmake: fix HAVE_GETHOSTNAME definition
authorPeter Wu <peter@lekensteyn.nl>
Thu, 6 Nov 2014 00:32:43 +0000 (01:32 +0100)
committerDaniel Stenberg <daniel@haxx.se>
Mon, 10 Nov 2014 08:07:50 +0000 (09:07 +0100)
commit10286f45e7c0813f6122cd8fd957e96a9f921b16
tree0bab74de7c8b128e996e6b1ede960c7487bead93
parent7bdfdd09e4ed32eb1ec690087b29a2a4c3a066ca
cmake: fix HAVE_GETHOSTNAME definition

Otherwise Curl_gethostname always fails. Windows has gethostname
since Vista according to
http://msdn.microsoft.com/en-us/library/ms738527%28VS.85%29.aspx, but
accordings to byte_bucket's VC 2005 documentation, it is available even
in Windows 95. (possibly after installing a Platform SDK, the
Windows Server 2003 SP1 Platform SDK should be sufficient).

Signed-off-by: Peter Wu <peter@lekensteyn.nl>
CMake/Platforms/WindowsCache.cmake
CMakeLists.txt