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

Log Message:
-----------
more windows header inclusion protections.

Modified Paths:
--------------
    brlcad/trunk/src/adrt/master/compnet.c
    brlcad/trunk/src/adrt/master/master.c

Modified: brlcad/trunk/src/adrt/master/compnet.c
===================================================================
--- brlcad/trunk/src/adrt/master/compnet.c      2010-10-19 06:15:51 UTC (rev 
41101)
+++ brlcad/trunk/src/adrt/master/compnet.c      2010-10-19 06:18:43 UTC (rev 
41102)
@@ -27,10 +27,19 @@
 #include <stdio.h>
 #include <stdlib.h>
 #include <string.h>
-#include <sys/socket.h>
-#include <sys/types.h>
-#include <netinet/in.h>
-#include <netdb.h>
+#ifdef HAVE_SYS_SOCKET_H
+#  include <sys/socket.h>
+#endif
+#ifdef HAVE_SYS_TYPES_H
+#  include <sys/types.h>
+#endif
+#ifdef HAVE_NETINET_IN_H
+#  include <netinet/in.h>
+#endif
+#ifdef HAVE_NETDB_H
+#  include <netdb.h>
+#endif
+#include "bio.h"
 
 #include "libtie/tie.h"
 #include "adrt.h"

Modified: brlcad/trunk/src/adrt/master/master.c
===================================================================
--- brlcad/trunk/src/adrt/master/master.c       2010-10-19 06:15:51 UTC (rev 
41101)
+++ brlcad/trunk/src/adrt/master/master.c       2010-10-19 06:18:43 UTC (rev 
41102)
@@ -45,11 +45,21 @@
 #include "tienet_master.h"
 
 /* Networking Includes */
-#include <sys/types.h>
-#include <sys/socket.h>
-#include <sys/select.h>
-#include <netinet/in.h>
-#include <arpa/inet.h>
+#ifdef HAVE_SYS_TYPES_H
+#  include <sys/types.h>
+#endif
+#ifdef HAVE_SYS_SOCKET_H
+#  include <sys/socket.h>
+#endif
+#ifdef HAVE_SYS_SELECT_H
+#  include <sys/select.h>
+#endif
+#ifdef HAVE_NETINET_IN_H
+#  include <netinet/in.h>
+#endif
+#ifdef HAVE_ARPA_INET_H
+#  include <arpa/inet.h>
+#endif
 
 #if ADRT_USE_COMPRESSION
 #  include <zlib.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