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>
Wed May 18 23:00:46 2011 +0200 (2011-05-18)
changeset 2467 200836977ce6
permissions -rw-r--r--
config: rename variables that are arrays

Make it explicit that a variable is an array bu the name of the variable.
It will be used later when .config gets munged to allow both multiple
arguments and arguments with spaces at the same time to be passed from the
configuration down to the build scripts.

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