DragonFly kernel List (threaded) for 2007-04
Re: Problem with /usr/include/sys/thread.h
Simon 'corecode' Schubert wrote:
> Hasso Tepper wrote:
> > There is string "template" used in two places (line 334 and 408). It
> > causes problems for C++ in which template is reserved keyword.
> No problem fixing this, but I'm curious: what are you doing with
> sys/thread.h and C++?
It's included indirectly. The code includes <sys/user.h>:
In file included from /usr/include/sys/lock.h:53,
/usr/include/sys/thread.h:334: error: expected `,' or `...' before "template"
/usr/include/sys/thread.h:408: error: expected `,' or `...' before "template"
The code is KDE ksysguard - system monitoring including ps, top etc
functionality, so it needs kinfo_proc.