view sources/patches/uClibc-sigaction.patch @ 963:dc25f0cbf93f

Fix sparc build break caused by uClibc upgrade.
author Rob Landley <rob@landley.net>
date Tue, 02 Feb 2010 02:52:13 -0600
parents
children
line wrap: on
line source

Fix sparc build break.  See:

  http://lists.uclibc.org/pipermail/uclibc/2010-February/043563.html

for details.

--- uClibc/libc/sysdeps/linux/sparc/sigaction.c	2010-01-13 15:22:31.000000000 -0600
+++ uClibc.bak/libc/sysdeps/linux/sparc/sigaction.c	2010-02-01 03:06:43.000000000 -0600
@@ -34,7 +34,8 @@
 static void __rt_sigreturn_stub(void);
 static void __sigreturn_stub(void);
 
-int __libc_sigaction(int sig, const struct sigaction *act, struct sigaction *oact)
+libc_hidden_proto(sigaction)
+int sigaction(int sig, const struct sigaction *act, struct sigaction *oact)
 {
 	int ret;
 	struct sigaction kact, koact;
@@ -64,11 +65,13 @@
 	}
 	return ret;
 }
+libc_hidden_def(sigaction)
+weak_alias(sigaction,__libc_sigaction)
 
-#ifndef LIBC_SIGACTION
-weak_alias(__libc_sigaction,sigaction)
-libc_hidden_weak(sigaction)
-#endif
+//#ifndef LIBC_SIGACTION
+//weak_alias(__libc_sigaction,sigaction)
+//libc_hidden_weak(sigaction)
+//#endif
 
 static void
 __rt_sigreturn_stub(void)