On Wed, 25 Nov 2009 13:53:19 +0000 Mindaugas Rasiukevicius <rm...@netbsd.org> 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'