From: | "Mike Frysinger (vapier)" <vapier@g.o> |
---|---|
To: | gentoo-commits@l.g.o |
Subject: | [gentoo-commits] gentoo-x86 commit in sys-devel/gettext/files: gettext-0.18.1.1-uclibc-sched_param-def.patch |
Date: | Wed, 07 Sep 2011 02:29:17 |
Message-Id: | 20110907022856.6A7FF20051@flycatcher.gentoo.org |
1 | vapier 11/09/07 02:28:56 |
2 | |
3 | Added: gettext-0.18.1.1-uclibc-sched_param-def.patch |
4 | Log: |
5 | Add gnulib sched fix from upstream for uClibc builds #323377 by Maksim Melnikau. Add elibtoolize for cross-compiling peeps #260794 by Andrei Slavoiu. |
6 | |
7 | (Portage version: 2.2.0_alpha51/cvs/Linux x86_64) |
8 | |
9 | Revision Changes Path |
10 | 1.1 sys-devel/gettext/files/gettext-0.18.1.1-uclibc-sched_param-def.patch |
11 | |
12 | file : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/sys-devel/gettext/files/gettext-0.18.1.1-uclibc-sched_param-def.patch?rev=1.1&view=markup |
13 | plain: http://sources.gentoo.org/viewvc.cgi/gentoo-x86/sys-devel/gettext/files/gettext-0.18.1.1-uclibc-sched_param-def.patch?rev=1.1&content-type=text/plain |
14 | |
15 | Index: gettext-0.18.1.1-uclibc-sched_param-def.patch |
16 | =================================================================== |
17 | uclibc defines __GLIBC__ but it does not expose struct shed_param as much as glibc |
18 | and is not needed too per standard. gnulib attempts to use it but we have to account |
19 | for it because in this case uclibc does not behave like glibc. |
20 | |
21 | -Khem |
22 | |
23 | http://bugs.gentoo.org/336484 |
24 | http://bugs.gentoo.org/323377 |
25 | |
26 | --- gettext/gettext-tools/gnulib-lib/spawn.in.h |
27 | +++ gettext/gettext-tools/gnulib-lib/spawn.in.h |
28 | @@ -31,7 +31,7 @@ |
29 | |
30 | /* Get definitions of 'struct sched_param' and 'sigset_t'. |
31 | But avoid namespace pollution on glibc systems. */ |
32 | -#ifndef __GLIBC__ |
33 | +#if !defined __GLIBC__ || defined __UCLIBC__ |
34 | # include <sched.h> |
35 | # include <signal.h> |
36 | #endif |