Revision: 41084
          http://brlcad.svn.sourceforge.net/brlcad/?rev=41084&view=rev
Author:   brlcad
Date:     2010-10-19 05:01:43 +0000 (Tue, 19 Oct 2010)

Log Message:
-----------
protect all the funky networking headers so windows has a chance.  blindly stab 
in an include for winsock2.h (even though it will have to have init calls added 
too for things like gethostbyname() to work.

Modified Paths:
--------------
    brlcad/trunk/src/remrt/ihost.c

Modified: brlcad/trunk/src/remrt/ihost.c
===================================================================
--- brlcad/trunk/src/remrt/ihost.c      2010-10-19 04:57:20 UTC (rev 41083)
+++ brlcad/trunk/src/remrt/ihost.c      2010-10-19 05:01:43 UTC (rev 41084)
@@ -32,13 +32,27 @@
 #include <math.h>
 #include <string.h>
 
-#include <netdb.h>
-#include <sys/types.h>
-#include <sys/stat.h>
-#include <sys/socket.h>
-#include <netinet/in.h>
-#include <arpa/inet.h>
-
+#ifdef HAVE_WINSOCK2_H
+#  include <winsock2.h>
+#endif
+#ifdef HAVE_NETDB_H
+#  include <netdb.h>
+#endif
+#ifdef HAVE_SYS_TYPES_H
+#  include <sys/types.h>
+#endif
+#ifdef HAVE_SYS_STAT_H
+#  include <sys/stat.h>
+#endif
+#ifdef HAVE_SYS_SOCKET_H
+#  include <sys/socket.h>
+#endif
+#ifdef HAVE_NETINET_IN_H
+#  include <netinet/in.h>
+#endif
+#ifndef HAVE_ARPA_INET_H
+#  include <arpa/inet.h>
+#endif
 #include "bio.h"
 
 #include "vmath.h"


This was sent by the SourceForge.net collaborative development platform, the 
world's largest Open Source development site.

------------------------------------------------------------------------------
Download new Adobe(R) Flash(R) Builder(TM) 4
The new Adobe(R) Flex(R) 4 and Flash(R) Builder(TM) 4 (formerly 
Flex(R) Builder(TM)) enable the development of rich applications that run
across multiple browsers and platforms. Download your free trials today!
http://p.sf.net/sfu/adobe-dev2dev
_______________________________________________
BRL-CAD Source Commits mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/brlcad-commits

Reply via email to