This is the mail archive of the
java-patches@gcc.gnu.org
mailing list for the Java project.
Patch: SIGPIPE and DISABLE_JAVA_NET
- To: java-patches at gcc dot gnu dot org
- Subject: Patch: SIGPIPE and DISABLE_JAVA_NET
- From: Anthony Green <green at redhat dot com>
- Date: Wed, 23 May 2001 10:31:54 -0700
- Reply-to: green at cygnus dot com
Yesterday I was building libjava on a target with no `sigaction'. As
it happens, it also didn't support networking - so I could avoid the
whole mess with this patch...
Ok for branch and trunk?
2001-05-22 Anthony Green <green@redhat.com>
* prims.cc (main_init): Don't bother dealing with SIGPIPE if
java.net is disabled.
Index: prims.cc
===================================================================
RCS file: /cvs/gcc/gcc/libjava/prims.cc,v
retrieving revision 1.46.4.2
diff -u -p -p -r1.46.4.2 prims.cc
--- prims.cc 2001/03/23 19:16:40 1.46.4.2
+++ prims.cc 2001/05/23 17:27:59
@@ -664,6 +664,7 @@ main_init ()
LTDL_SET_PRELOADED_SYMBOLS ();
#endif
+#ifndef DISABLE_JAVA_NET
#ifdef USE_WINSOCK
// Initialise winsock for networking
WSADATA data;
@@ -682,6 +683,7 @@ main_init ()
act.sa_flags = 0;
sigaction (SIGPIPE, &act, NULL);
#endif /* USE_WIN32_SIGNALLING */
+#endif
_Jv_JNI_Init ();
}