glibc 2.0.95
Franz Sirl
Franz.Sirl-kernel@lauterbach.com
Sun Aug 2 06:27:00 GMT 1998
Am Sat, 01 Aug 1998 schrieb Richard Henderson:
>On Sat, Aug 01, 1998 at 01:12:13PM +0200, Franz Sirl wrote:
>> // compile with: g++ -O2 -c -s -pedantic-errors test.C
>> #include <stdlib.h>
>> #include <unistd.>
>>
>> int main()
>> {
>> char buffer[200];
>> gethostname(buffer,200);
>> return 0;
>> }
>
>This is IMO a stupid way to detect a prototype. Have a look at
>egcs' aclocal.m4, GCC_NEED_DECLARATION:
>
> char *(*pfn) = (char *(*)) $1
This looks better sure, but it makes no difference for the problem. With the
current glibc-2.0.95 header files and egcs-1.1 it will still fail if you
compile with g++ -pedantic-errors.
Franz.
More information about the Libc-hacker
mailing list