[BUG] compliation error in bits/socket.h with -D__USE_EXTERN_INLINES
Peter S. Mazinger
ps.m at gmx.net
Mon Mar 20 09:46:16 UTC 2006
On Sat, 18 Mar 2006, Amir Shalem wrote:
> hey
>
>
> since http://www.uclibc.org/cgi-bin/viewcvs.cgi?rev=12407&view=rev
>
> which enabled __THROW and friends were enabled
>
>
> when compiling using -D__USE_EXTERN_INLINES
>
> there's a compilation error in <bits/socket.h>, <bits/mathinline.h>
>
>
> because using __THROW at the end of a defintion of function is an error
> in C:
>
>
> int
>
> function(void) __THROW
>
> {
>
> }
>
>
> the correct usage is
>
>
> int
>
> __NTH (function (void))
>
> {
>
> }
>
>
> the patch syncs (created manually) bits/socket.h and i386
> bits/mathinline.h from glibc
>
>
> thanks,
>
> amir.
what should be correct for the prototype? glibc's use is mixed up
... type __NTH(func());
or
... type func() __THROW;
Peter
--
Peter S. Mazinger <ps dot m at gmx dot net> ID: 0xA5F059F2
Key fingerprint = 92A4 31E1 56BC 3D5A 2D08 BB6E C389 975E A5F0 59F2
More information about the uClibc
mailing list