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