Revision: 65388
http://sourceforge.net/p/brlcad/code/65388
Author: brlcad
Date: 2015-06-18 16:43:00 +0000 (Thu, 18 Jun 2015)
Log Message:
-----------
hostnames can be up to 255 characters long per posix (windows current limit is
63 bytes). also, make sure we're using winsock2 (v 2.2 requested here).
Modified Paths:
--------------
brlcad/trunk/CMakeLists.txt
Modified: brlcad/trunk/CMakeLists.txt
===================================================================
--- brlcad/trunk/CMakeLists.txt 2015-06-18 16:10:58 UTC (rev 65387)
+++ brlcad/trunk/CMakeLists.txt 2015-06-18 16:43:00 UTC (rev 65388)
@@ -1806,11 +1806,10 @@
check_c_source_runs("
#include <winsock2.h>
int main() {
- char name[32];
- WORD wVersionRequested = MAKEWORD(1, 1);
+ char name[256] = {0};
WSADATA wsaData;
- WSAStartup(wVersionRequested, &wsaData);
- (void)gethostname(name, 32);
+ WSAStartup(MAKEWORD(2,2), &wsaData);
+ (void)gethostname(name, sizeof(name));
WSACleanup();
return 0;
}
This was sent by the SourceForge.net collaborative development platform, the
world's largest Open Source development site.
------------------------------------------------------------------------------
_______________________________________________
BRL-CAD Source Commits mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/brlcad-commits