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


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


r~


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