This is the mail archive of the libc-alpha@cygnus.com mailing list for the glibc project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]

Re: glibc 2.0.95


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.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]