Problem with /usr/include/sys/thread.h
Hasso Tepper
hasso at estpak.ee
Sun Apr 15 09:48:49 PDT 2007
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,
from /usr/include/sys/proc.h:57,
from /usr/include/sys/user.h:73,
[snip]
/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.
regards,
--
Hasso Tepper
More information about the Kernel
mailing list