Subject: Re: CVS commit: src/sys
To: None <current-users@netbsd.org>
From: Christos Zoulas <christos@astron.com>
List: current-users
Date: 03/01/2007 17:58:07
In article <m2y7mgx6rj.wl%hira@po6.nsk.ne.jp>,
Kouichirou Hiratsuka  <hira@po6.nsk.ne.jp> wrote:
>Hello,
>
>At Tue, 27 Feb 2007 15:07:29 +0000 (UTC),
>YAMAMOTO Takashi wrote:
>> 
>> 
>> Module Name:	src
>> Committed By:	yamt
>> Date:		Tue Feb 27 15:07:29 UTC 2007
>> 
>> Modified Files:
>> 	src/sys/kern: kern_condvar.c kern_lock.c kern_sleepq.c kern_synch.c
>> 	    kern_turnstile.c subr_workqueue.c
>> 	src/sys/sys: lock.h lwp.h proc.h sched.h sleepq.h syncobj.h types.h
>> 	    workqueue.h
>> 
>> Log Message:
>> typedef pri_t and use it instead of int and u_char.
>> 
>> 
>> To generate a diff of this commit:
>> cvs rdiff -r1.4 -r1.5 src/sys/kern/kern_condvar.c
>> cvs rdiff -r1.108 -r1.109 src/sys/kern/kern_lock.c
>> cvs rdiff -r1.6 -r1.7 src/sys/kern/kern_sleepq.c
>> cvs rdiff -r1.184 -r1.185 src/sys/kern/kern_synch.c
>> cvs rdiff -r1.5 -r1.6 src/sys/kern/kern_turnstile.c
>> cvs rdiff -r1.11 -r1.12 src/sys/kern/subr_workqueue.c
>> cvs rdiff -r1.68 -r1.69 src/sys/sys/lock.h
>> cvs rdiff -r1.53 -r1.54 src/sys/sys/lwp.h
>> cvs rdiff -r1.240 -r1.241 src/sys/sys/proc.h
>> cvs rdiff -r1.32 -r1.33 src/sys/sys/sched.h
>> cvs rdiff -r1.4 -r1.5 src/sys/sys/sleepq.h
>> cvs rdiff -r1.2 -r1.3 src/sys/sys/syncobj.h
>> cvs rdiff -r1.72 -r1.73 src/sys/sys/types.h
>> cvs rdiff -r1.3 -r1.4 src/sys/sys/workqueue.h
>
>Revision 1.69 of sys/lock.h does not work with gcc3.
>
>% cat << EOF > foo.c
>#include <sys/lock.h>
>int main() { return 0; }
>EOF
>% cc foo.c
>% /usr/pkg/gcc3/bin/cc foo.c
>In file included from foo.c:1:
>/usr/include/sys/lock.h:155: error: syntax error before "pri_t"
>/usr/include/sys/lock.h:170: error: syntax error before '}' token
>/usr/include/sys/lock.h:189: error: syntax error before '}' token
>% ident /usr/include/sys/lock.h
>/usr/include/sys/lock.h:
>     $NetBSD: lock.h,v 1.69 2007/02/27 15:07:28 yamt Exp $
>

It needs <sys/types.h> first for pri_t; it is not a gcc 3 issue.

christos