diff options
author | Nathan Keynes <Nathan.Keynes@Sun.COM> | 2009-04-30 16:35:44 -0700 |
---|---|---|
committer | Nathan Keynes <Nathan.Keynes@Sun.COM> | 2009-04-30 16:35:44 -0700 |
commit | 8883f1c270cc8e33c18dd088e744840092b47bbb (patch) | |
tree | 8158374df4c6ad96b23aae3de2c235943f3dcc7a /usr/src/lib/libresolv | |
parent | 2d2627043e43d2539979aab3fb55dafd776970e6 (diff) | |
download | illumos-gate-8883f1c270cc8e33c18dd088e744840092b47bbb.tar.gz |
6795209 Enable compilation of ON-consolidation with GCC 4.2
6392640 rpcgen -h -T output does not compile with gcc 4.x
Diffstat (limited to 'usr/src/lib/libresolv')
-rw-r--r-- | usr/src/lib/libresolv/res_gethost.c | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/usr/src/lib/libresolv/res_gethost.c b/usr/src/lib/libresolv/res_gethost.c index f05fddd988..bc25771d6d 100644 --- a/usr/src/lib/libresolv/res_gethost.c +++ b/usr/src/lib/libresolv/res_gethost.c @@ -1,5 +1,5 @@ /* - * Copyright 2008 Sun Microsystems, Inc. All rights reserved. + * Copyright 2009 Sun Microsystems, Inc. All rights reserved. * Use is subject to license terms. */ @@ -16,8 +16,6 @@ * */ -#pragma ident "%Z%%M% %I% %E% SMI" - #include <sys/param.h> #include <sys/socket.h> #include <netinet/in.h> @@ -224,6 +222,8 @@ getanswer(answer, anslen, iquery) } } +static struct hostent *_gethtbyname(); + struct hostent * res_gethostbyname(name) char *name; @@ -232,7 +232,6 @@ res_gethostbyname(name) register char *cp; int n; struct hostent *hp, *gethostdomain(); - static struct hostent *_gethtbyname(); /* * disallow names consisting only of digits/dots, unless @@ -263,6 +262,8 @@ res_gethostbyname(name) return (getanswer(&buf, n, 0)); } +static struct hostent *_gethtbyaddr(); + static struct hostent * _getrhbyaddr(addr, len, type) char *addr; @@ -272,7 +273,6 @@ _getrhbyaddr(addr, len, type) querybuf buf; register struct hostent *hp; char qbuf[MAXDNAME]; - static struct hostent *_gethtbyaddr(); if (type != AF_INET) return ((struct hostent *) NULL); |