glibc 2.0.95
Richard Henderson
rth@cygnus.com
Sat Aug 1 12:40:00 GMT 1998
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~
More information about the Libc-alpha
mailing list