This is the mail archive of the
java-patches@sourceware.cygnus.com
mailing list for the Java project.
Patch: another java.net disable patch
- To: Java Patch List <java-patches at sourceware dot cygnus dot com>
- Subject: Patch: another java.net disable patch
- From: Tom Tromey <tromey at cygnus dot com>
- Date: 04 Oct 1999 15:39:06 -0600
- Reply-To: tromey at cygnus dot com
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