This is the mail archive of the java-patches@sourceware.cygnus.com mailing list for the Java project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]

Patch: another java.net disable patch


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 

Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]