Revision: 40985
http://brlcad.svn.sourceforge.net/brlcad/?rev=40985&view=rev
Author: starseeker
Date: 2010-10-14 02:03:40 +0000 (Thu, 14 Oct 2010)
Log Message:
-----------
Borrow some initialization code from pkg.c for Windows - getting a hostname
back now that makes sense.
Modified Paths:
--------------
brlcad/branches/cmake/misc/CMake/test_srcs/report_hostname.c.in
Modified: brlcad/branches/cmake/misc/CMake/test_srcs/report_hostname.c.in
===================================================================
--- brlcad/branches/cmake/misc/CMake/test_srcs/report_hostname.c.in
2010-10-13 21:55:17 UTC (rev 40984)
+++ brlcad/branches/cmake/misc/CMake/test_srcs/report_hostname.c.in
2010-10-14 02:03:40 UTC (rev 40985)
@@ -9,7 +9,13 @@
int i;
char hostname[chararraysize];
FILE *outfp = NULL;
-
+ #ifdef _WIN32
+ LPHOSTENT lpHostEntry;
+ WORD wVersionRequested;
+ WSADATA wsaData;
+ wVersionRequested = MAKEWORD(1, 1);
+ WSAStartup(wVersionRequested, &wsaData);
+ #endif
hostname[chararraysize - 1] = "\0";
gethostname(hostname, chararraysize - 1);
outfp = fopen("${BRLCAD_BINARY_DIR}/include/conf/HOST", "w");
This was sent by the SourceForge.net collaborative development platform, the
world's largest Open Source development site.
------------------------------------------------------------------------------
Beautiful is writing same markup. Internet Explorer 9 supports
standards for HTML5, CSS3, SVG 1.1, ECMAScript5, and DOM L2 & L3.
Spend less time writing and rewriting code and more time creating great
experiences on the web. Be a part of the beta today.
http://p.sf.net/sfu/beautyoftheweb
_______________________________________________
BRL-CAD Source Commits mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/brlcad-commits