[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [PATCH 05/21] spawn: do not include sched.h on OS/2 kLIBC
From: |
Bruno Haible |
Subject: |
Re: [PATCH 05/21] spawn: do not include sched.h on OS/2 kLIBC |
Date: |
Tue, 02 Dec 2014 17:14:51 +0100 |
User-agent: |
KMail/4.8.5 (Linux/3.2.0-64-generic; KDE/4.8.5; x86_64; ; ) |
KO Myung-Hun wrote:
> kLIBC does not have sched.h.
> kLIBC declares 'struct sched_param' directly in its own spawn.h.
But then the sched.h that gnulib module 'sched' creates is broken for kLIBC:
It will set HAVE_STRUCT_SCHED_PARAM=0 and thus provide a different
definition of 'struct sched_param', that conflicts if both <sched.h> and
<spawn.h> are included.
You must first fix the problem in <sched.h>:
- Adjust m4/sched_h.m4 so that it considers <spawn.h> too,
also when <sched.h> does not exist. It should set HAVE_STRUCT_SCHED_PARAM=1.
- Adjust lib/sched.in.h so that it includes <spawn.h> in the kLIBC case.
Then, AFAICS, no change should be necessary to lib/spawn.in.h (because
module 'spawn' depends on module 'sched').
Bruno