This is the mail archive of the gcc-patches@gcc.gnu.org mailing list for the GCC project.


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

[PATCH] Fix libjava breakage with glibc 2.2.2pre


Hi!

__sigaction() is no longer declared in glibc headers (it is internal, so why
should it). This patch makes libjava compile with current glibc.
Ok to commit (for branch as well)?

2001-02-14  Jakub Jelinek  <jakub@redhat.com>

	* include/i386-signal.h (INIT_SEGV, INIT_FPE): Use sigaction instead
	of __sigaction or syscall (SYS_sigaction).
	* include/ppc-signal.h (INIT_SEGV, INIT_FPE): Likewise.

--- libjava/include/i386-signal.h.jj	Thu Feb  1 11:15:03 2001
+++ libjava/include/i386-signal.h	Wed Feb 14 11:44:34 2001
@@ -128,7 +128,7 @@ do								\
     act.sa_handler = catch_segv;				\
     sigemptyset (&act.sa_mask);					\
     act.sa_flags = 0;						\
-    __sigaction (SIGSEGV, &act, NULL);				\
+    sigaction (SIGSEGV, &act, NULL);				\
   }								\
 while (0)  
 
@@ -141,7 +141,7 @@ do								\
     act.sa_handler = catch_fpe;					\
     sigemptyset (&act.sa_mask);					\
     act.sa_flags = 0;						\
-    syscall (SYS_sigaction, SIGFPE, &act, NULL);		\
+    sigaction (SIGFPE, &act, NULL);				\
   }								\
 while (0)  
 
--- libjava/include/ppc-signal.h.jj	Tue May 16 16:38:21 2000
+++ libjava/include/ppc-signal.h	Wed Feb 14 11:43:22 2001
@@ -1,6 +1,6 @@
 // ppc-signal.h - Catch runtime signals and turn them into exceptions.
 
-/* Copyright (C) 2000  Free Software Foundation
+/* Copyright (C) 2000, 2001  Free Software Foundation
 
    This file is part of libgcj.
 
@@ -95,7 +95,7 @@ do								\
     act.sa_handler = _Jv_catch_segv;				\
     sigemptyset (&act.sa_mask);					\
     act.sa_flags = 0;						\
-    __sigaction (SIGSEGV, &act, NULL);				\
+    sigaction (SIGSEGV, &act, NULL);				\
   }								\
 while (0)  
 
@@ -108,7 +108,7 @@ do								\
     act.sa_handler = _Jv_catch_fpe;				\
     sigemptyset (&act.sa_mask);					\
     act.sa_flags = 0;						\
-    __sigaction (SIGFPE, &act, NULL);				\
+    sigaction (SIGFPE, &act, NULL);				\
   }								\
 while (0)  
 

	Jakub


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