DragonFly kernel List (threaded) for 2007-04
DragonFly BSD
DragonFly kernel List (threaded) for 2007-04
[Date Prev][Date Next]  [Thread Prev][Thread Next]  [Date Index][Thread Index]

Re: Problem with /usr/include/sys/thread.h


From: Hasso Tepper <hasso@xxxxxxxxx>
Date: Sun, 15 Apr 2007 19:44:38 +0300

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



[Date Prev][Date Next]  [Thread Prev][Thread Next]  [Date Index][Thread Index]