Patch: another java.net disable patch

Tom Tromey tromey@cygnus.com
Mon Oct 4 14:36:00 GMT 1999


I'm committing this patch, which fixes a bug when trying to disable
java.net.

1999-10-04  Tom Tromey  <tromey@cygnus.com>

	* java/net/natPlainSocketImpl.cc: Don't include headers if
	java.net is disabled.

Tom

Index: java/net//natPlainSocketImpl.cc
===================================================================
RCS file: /cvs/java/libgcj/libjava/java/net/natPlainSocketImpl.cc,v
retrieving revision 1.12
diff -u -r1.12 natPlainSocketImpl.cc
--- natPlainSocketImpl.cc	1999/10/02 00:19:01	1.12
+++ natPlainSocketImpl.cc	1999/10/04 21:33:12
@@ -8,6 +8,7 @@
 
 #include <config.h>
 
+#ifndef DISABLE_JAVA_NET
 #include <sys/types.h>
 #include <sys/socket.h>
 #include <sys/time.h>
@@ -19,6 +20,7 @@
 #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 


More information about the Java-patches mailing list