natPlainSocketImpl.cc: Don't include headers if java.net is disabled.
authorTom Tromey <tromey@cygnus.com>
Mon, 4 Oct 1999 21:37:30 +0000 (21:37 +0000)
committerTom Tromey <tromey@gcc.gnu.org>
Mon, 4 Oct 1999 21:37:30 +0000 (21:37 +0000)
* java/net/natPlainSocketImpl.cc: Don't include headers if
java.net is disabled.

From-SVN: r29812

libjava/ChangeLog
libjava/java/net/natPlainSocketImpl.cc

index 8c44cf9e17c56dd3cbc7e1381f7bcf7288ca6a18..7511376afc0cefafa9adc4485a3cdbc66ce233e8 100644 (file)
@@ -1,5 +1,8 @@
 1999-10-04  Tom Tromey  <tromey@cygnus.com>
 
+       * java/net/natPlainSocketImpl.cc: Don't include headers if
+       java.net is disabled.
+
        * Makefile.in: Rebuilt.
        * Makefile.am (ZINCS): Removed.  This is defined in configure.in
        when needed, and must be left empty when not needed.
index df98fef14b844f4d0262a74c5dbef790346e7ad2..62dafd32cdd8a9a6a406971d1600d551b75c0245 100644 (file)
@@ -8,6 +8,7 @@ details.  */
 
 #include <config.h>
 
+#ifndef DISABLE_JAVA_NET
 #include <sys/types.h>
 #include <sys/socket.h>
 #include <sys/time.h>
@@ -19,6 +20,7 @@ details.  */
 #include <errno.h>
 #include <stdio.h>
 #include <string.h>
+#endif /* DISABLE_JAVA_NET */
 
 #if HAVE_BSTRING_H
 // Needed for bzero, implicitly used by FD_ZERO on IRIX 5.2