patches/uClibc/0.9.30.2/180-Unbreak-build-for-sparc-on-some-config-s.patch
author "Yann E. MORIN" <yann.morin.1998@free.fr>
Wed Dec 26 13:30:51 2012 +0100 (2012-12-26)
changeset 3145 598880dab0f3
permissions -rw-r--r--
libc/glibc: both glibc and eglibc have pkgversion and bugurl

Well, all eglibc version we support do, and latest glibc versions
we support do.

Not all glibc versions do, but older versions simply ignore the
unrecognised ./configure flags.

Signed-off-by: "Yann E. MORIN" <yann.morin.1998@free.fr>
     1 From 7b964170536951a260f7d552db99b428d1ea5026 Mon Sep 17 00:00:00 2001
     2 From: Austin Foxley <austinf@cetoncorp.com>
     3 Date: Wed, 3 Feb 2010 12:12:10 -0800
     4 Subject: [PATCH 08/15] Unbreak build for sparc on some config's
     5 
     6 Thanks to rob@landley.net
     7 
     8 Signed-off-by: Austin Foxley <austinf@cetoncorp.com>
     9 ---
    10  libc/sysdeps/linux/sparc/sigaction.c |    9 ++++-----
    11  1 files changed, 4 insertions(+), 5 deletions(-)
    12 
    13 diff --git a/libc/sysdeps/linux/sparc/sigaction.c b/libc/sysdeps/linux/sparc/sigaction.c
    14 index a22ac40..7140fd3 100644
    15 --- a/libc/sysdeps/linux/sparc/sigaction.c
    16 +++ b/libc/sysdeps/linux/sparc/sigaction.c
    17 @@ -34,7 +34,8 @@ _syscall5(int, rt_sigaction, int, a, int, b, int, c, int, d, int, e);
    18  static void __rt_sigreturn_stub(void);
    19  static void __sigreturn_stub(void);
    20  
    21 -int __libc_sigaction(int sig, const struct sigaction *act, struct sigaction *oact)
    22 +libc_hidden_proto(sigaction)
    23 +int sigaction(int sig, const struct sigaction *act, struct sigaction *oact)
    24  {
    25  	int ret;
    26  	struct sigaction kact, koact;
    27 @@ -65,10 +66,8 @@ int __libc_sigaction(int sig, const struct sigaction *act, struct sigaction *oac
    28  	return ret;
    29  }
    30  
    31 -#ifndef LIBC_SIGACTION
    32 -weak_alias(__libc_sigaction,sigaction)
    33 -libc_hidden_weak(sigaction)
    34 -#endif
    35 +libc_hidden_def(sigaction)
    36 +weak_alias(sigaction,__libc_sigaction)
    37  
    38  static void
    39  __rt_sigreturn_stub(void)
    40 -- 
    41 1.6.6.1
    42