[PATCH] Fix libjava breakage with glibc 2.2.2pre

Andrew Haley aph@redhat.com
Thu Feb 15 11:24:00 GMT 2001


This is the simplest patch that will work, so I've committed it to the
trunk and the branch.

Andrew.

2001-02-14  Andrew Haley  <aph@redhat.com>

	* include/i386-signal.h (INIT_SEGV): Use a direct system call to
	set the handler.

Index: include/i386-signal.h
===================================================================
RCS file: /cvs/gcc/gcc/libjava/include/i386-signal.h,v
retrieving revision 1.9
diff -u -r1.9 i386-signal.h
--- i386-signal.h	2001/01/30 21:00:22	1.9
+++ i386-signal.h	2001/02/15 19:14:13
@@ -128,7 +128,7 @@
     act.sa_handler = catch_segv;				\
     sigemptyset (&act.sa_mask);					\
     act.sa_flags = 0;						\
-    __sigaction (SIGSEGV, &act, NULL);				\
+    syscall (SYS_sigaction, SIGSEGV, &act, NULL);		\
   }								\
 while (0)  
 



More information about the Gcc-patches mailing list