tech-userlevel archive

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

Re: 6.0_BETA: unistd.h breaks pcc



On Sat, 10 Mar 2012, Joerg Sonnenberger wrote:

> On Sat, Mar 10, 2012 at 10:25:35AM +0300, Aleksey Cheusov wrote:
> > Inclusion of unistd.h breaks compilation with pcc.
> >
> >    /usr/include//unistd.h, line 277: warning: unsupported attribute 
> > '__returns_twice__'
> >
> > unistd.h:
> >    276 #ifndef __LIBC12_SOURCE__
> >    277 pid_t<-> vfork(void) __RENAME(__vfork14) __returns_twice;
> >    278 #endif
> >
> > __returns_twice is also used in setjmp.h and ucontext.h.
> >
> > It would be nice to fix this in netbsd-6.
>
> The attribute is set for GCC 4.1 and later. If PCC claims to be that and
> it doesn't support it, it's broken. In short, not a NetBSD problem.

Nevertheless, I will fix it when I have time (this week sometime)

iain


Home | Main Index | Thread Index | Old Index