diff options
author | KO Myung-Hun <komh78@gmail.com> | 2014-12-04 10:03:34 +0900 |
---|---|---|
committer | Eric Blake <eblake@redhat.com> | 2014-12-08 13:36:46 -0700 |
commit | 5945e4ee5c9d2e1fb4876f871ba14fdc1b0e5481 (patch) | |
tree | c312ee86c49a62de2271c0a70716329656c0a7e4 /lib/sched.in.h | |
parent | cf88e56ab3575e41c297a52c10d35e5d67ff909d (diff) | |
download | gnulib-5945e4ee5c9d2e1fb4876f871ba14fdc1b0e5481.tar.gz |
sched: check struct sched_param in spawn.h as well
On OS/2 kLIBC, struct sched_param is in spawn.h. So without this a
redefinition error occurs when sched.h is inclued by spawn.h.
* lib/sched.in.h: Include spawn.h on kLIBC.
* lib/sched_h.m4: Check struct sched_param in spawn.h as well.
Diffstat (limited to 'lib/sched.in.h')
-rw-r--r-- | lib/sched.in.h | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/lib/sched.in.h b/lib/sched.in.h index edebf81080..7be676128b 100644 --- a/lib/sched.in.h +++ b/lib/sched.in.h @@ -35,6 +35,13 @@ and Mac OS X 10.5. */ #include <sys/types.h> +#ifdef __KLIBC__ + +/* On OS/2 kLIBC, struct sched_param is in spawn.h */ +# include <spawn.h> + +#endif + #if !@HAVE_STRUCT_SCHED_PARAM@ # if !GNULIB_defined_struct_sched_param |