Source-Changes-D archive

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

Re: CVS commit: src/sys



On Wed, 25 Nov 2009 13:53:19 +0000
Mindaugas Rasiukevicius <rmind%netbsd.org@localhost> wrote:

> Modified Files:
>       src/sys/arch/i386/i386: db_trace.c
>       src/sys/sys: lwp.h
> 
> Log Message:
> Restore exporting of lwp_getpcb() to userland and fix DDB properly.
> While the header might be abstracted better, it is a separate issue.

This causes breakage for programs that compile with -ansi or -std=c89:

$ cat > test.c << EOF
#include <sys/param.h>
#include <sys/sysctl.h>
int main(void) { return 0; }
EOF
$ gcc -ansi -o test test.c
In file included from /usr/include/sys/proc.h:83,
                 from /usr/include/sys/sysctl.h:46,
                 from test.c:2:
/usr/include/sys/lwp.h:200: error: expected '=', ',', ';', 'asm' or
'__attribute__' before 'void'


Home | Main Index | Thread Index | Old Index