packages/libs/gettext/patches/160-uclibc_sched_h_fix.patch
jow 552f5315ae [packages] gettext: refresh patches, fix patches, fix compilation
git-svn-id: svn://svn.openwrt.org/openwrt/packages@24290 3c298f89-4303-0410-b956-a3cf2f4a3e73
2010-12-06 22:18:30 +00:00

27 lines
583 B
Diff

--- a/gettext-tools/gnulib-lib/spawn.in.h
+++ b/gettext-tools/gnulib-lib/spawn.in.h
@@ -31,8 +31,10 @@
/* Get definitions of 'struct sched_param' and 'sigset_t'.
But avoid namespace pollution on glibc systems. */
-#ifndef __GLIBC__
+#ifndef __GLIBC__ || __UCLIBC__
# include <sched.h>
+#endif
+#ifndef __GLIBC__
# include <signal.h>
#endif
@@ -88,7 +90,11 @@ typedef struct
pid_t _pgrp;
sigset_t _sd;
sigset_t _ss;
+#ifdef __UCLIBC__
+ struct __sched_param _sp;
+#else
struct sched_param _sp;
+#endif
int _policy;
int __pad[16];
} posix_spawnattr_t;