diff options
author | anay <none@none> | 2005-07-26 11:14:16 -0700 |
---|---|---|
committer | anay <none@none> | 2005-07-26 11:14:16 -0700 |
commit | 6a1c6faa6f0834799d7de3e77fac2ec32d923f9a (patch) | |
tree | b9ffae122f0cfeba99c72deca499b83cd22e9af4 /usr/src/lib/libresolv/res_sethost.c | |
parent | 78eb75caca75144af27b7903ffed3fb549faab2f (diff) | |
download | illumos-joyent-6a1c6faa6f0834799d7de3e77fac2ec32d923f9a.tar.gz |
6274683 gcc and libresolv[2] don't get along
Diffstat (limited to 'usr/src/lib/libresolv/res_sethost.c')
-rw-r--r-- | usr/src/lib/libresolv/res_sethost.c | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/usr/src/lib/libresolv/res_sethost.c b/usr/src/lib/libresolv/res_sethost.c index 4af3bd60e6..cb95cb7f0d 100644 --- a/usr/src/lib/libresolv/res_sethost.c +++ b/usr/src/lib/libresolv/res_sethost.c @@ -20,7 +20,7 @@ * CDDL HEADER END */ /* - * Copyright 1996 Sun Microsystems, Inc. All rights reserved. + * Copyright 2005 Sun Microsystems, Inc. All rights reserved. * Use is subject to license terms. */ @@ -46,18 +46,21 @@ #include <netinet/in.h> #include <resolv.h> +void res_sethostent(stayopen) { if (stayopen) _res.options |= RES_STAYOPEN | RES_USEVC; } +void res_endhostent() { _res.options &= ~(RES_STAYOPEN | RES_USEVC); _res_close(); } +void res_sethostfile(name) char *name; { |