From 6a1c6faa6f0834799d7de3e77fac2ec32d923f9a Mon Sep 17 00:00:00 2001 From: anay Date: Tue, 26 Jul 2005 11:14:16 -0700 Subject: 6274683 gcc and libresolv[2] don't get along --- usr/src/lib/libresolv/res_query.c | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) (limited to 'usr/src/lib/libresolv/res_query.c') diff --git a/usr/src/lib/libresolv/res_query.c b/usr/src/lib/libresolv/res_query.c index 320776bf18..70d9d8be47 100644 --- a/usr/src/lib/libresolv/res_query.c +++ b/usr/src/lib/libresolv/res_query.c @@ -20,7 +20,7 @@ * CDDL HEADER END */ /* - * Copyright 1997 Sun Microsystems, Inc. All rights reserved. + * Copyright 2005 Sun Microsystems, Inc. All rights reserved. * Use is subject to license terms. */ @@ -70,6 +70,7 @@ int h_errno; * Error number is left in h_errno. * Caller must parse answer and determine whether it answers the question. */ +int res_query(name, class, type, answer, anslen) char *name; /* domain name */ int class, type; /* class and type of query */ @@ -146,6 +147,7 @@ res_query(name, class, type, answer, anslen) * Only useful for queries in the same name hierarchy as the local host * (not, for example, for host address-to-name lookups in domain in-addr.arpa). */ +int res_search(name, class, type, answer, anslen) char *name; /* domain name */ int class, type; /* class and type of query */ @@ -222,6 +224,7 @@ res_search(name, class, type, answer, anslen) * Perform a call on res_query on the concatenation of name and domain, * removing a trailing dot from name if domain is NULL. */ +int res_querydomain(name, domain, class, type, answer, anslen) char *name, *domain; int class, type; /* class and type of query */ -- cgit v1.2.3