patches/uClibc/0.9.30.2/180-Unbreak-build-for-sparc-on-some-config-s.patch
author "Yann E. MORIN" <yann.morin.1998@anciens.enib.fr>
Mon Jan 03 23:40:22 2011 +0100 (2011-01-03)
changeset 2267 7af68e6083aa
permissions -rw-r--r--
libc-glibc: remove 2.3.6

This is an obsolete version which is no longer used by any sample (the only
user, the ia64 sample, has been removed).

It also makes the code path a bit complex, with twists just to accomodate
that version. Removing the version will make those twists go away, and
will ease commonalisation of glibc and eglibc in the future (hopefully!).

Signed-off-by: "Yann E. MORIN" <yann.morin.1998@anciens.enib.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