libs/gettext: fix uClibc-0.9.32 compile issues, enable parallel build, refresh patches
[packages.git] / libs / gettext / patches / 160-uclibc_sched_h_fix.patch
1 --- a/gettext-tools/gnulib-lib/spawn.in.h
2 +++ b/gettext-tools/gnulib-lib/spawn.in.h
3 @@ -31,8 +31,10 @@
4  
5  /* Get definitions of 'struct sched_param' and 'sigset_t'.
6     But avoid namespace pollution on glibc systems.  */
7 -#ifndef __GLIBC__
8 +#ifndef __GLIBC__ || __UCLIBC__
9  # include <sched.h>
10 +#endif
11 +#ifndef __GLIBC__
12  # include <signal.h>
13  #endif
14  
15 @@ -88,7 +90,11 @@ typedef struct
16    pid_t _pgrp;
17    sigset_t _sd;
18    sigset_t _ss;
19 +#ifdef __UCLIBC__
20 +  struct __sched_param _sp;
21 +#else
22    struct sched_param _sp;
23 +#endif
24    int _policy;
25    int __pad[16];
26  } posix_spawnattr_t;