|
From: Tom H. <to...@co...> - 2005-11-12 18:56:52
|
In message <Pin...@ch...>
Nicholas Nethercote <nj...@cs...> wrote:
> I get this problem building memcheck/tests/stack_switch.c:
>
> ~/grind/trunk2/memcheck/tests] mq check
> Making check in .
> stack_switch.c: In function 'main':
> stack_switch.c:40: error: 'CLONE_THREAD' undeclared (first use in this
> function)
> stack_switch.c:40: error: (Each undeclared identifier is reported only
> once
> stack_switch.c:40: error: for each function it appears in.)
> make[2]: *** [stack_switch.o] Error 1
> make[1]: *** [check-am] Error 2
> make: *** [check-recursive] Error 1
>
> On my machine bits/sched.h (which gets pulled into sched.h) does not
> defined CLONE_THREAD. But linux/sched.h does. Should we #include
> <linux/sched.h> as well?
It's not ideal as that is a kernel header, but it might be necessary.
It looks like some of my test machines have the same problem actually.
Tom
--
Tom Hughes (to...@co...)
http://www.compton.nu/
|