diff options
author | Philip Guenther <guenther@cvs.openbsd.org> | 2015-10-05 02:57:17 +0000 |
---|---|---|
committer | Philip Guenther <guenther@cvs.openbsd.org> | 2015-10-05 02:57:17 +0000 |
commit | fb448c8683053671dc7a90ca35c39a88b616d508 (patch) | |
tree | 492c4c43ec6c5e73af8e53ae717e9996533e68bb /lib/libc/asr | |
parent | 2a26a16179c6f1f78ed5298704d0ea56585df541 (diff) |
Wrap <resolv.h> so that internal calls go direct
ok millert@
Diffstat (limited to 'lib/libc/asr')
-rw-r--r-- | lib/libc/asr/res_init.c | 3 | ||||
-rw-r--r-- | lib/libc/asr/res_query.c | 3 |
2 files changed, 4 insertions, 2 deletions
diff --git a/lib/libc/asr/res_init.c b/lib/libc/asr/res_init.c index 130646e01dc..03ed33562b8 100644 --- a/lib/libc/asr/res_init.c +++ b/lib/libc/asr/res_init.c @@ -1,4 +1,4 @@ -/* $OpenBSD: res_init.c,v 1.5 2015/09/09 15:49:34 deraadt Exp $ */ +/* $OpenBSD: res_init.c,v 1.6 2015/10/05 02:57:16 guenther Exp $ */ /* * Copyright (c) 2012 Eric Faurot <eric@openbsd.org> * @@ -86,3 +86,4 @@ res_init(void) return (0); } +DEF_WEAK(res_init); diff --git a/lib/libc/asr/res_query.c b/lib/libc/asr/res_query.c index 3cdec90b944..3f891416387 100644 --- a/lib/libc/asr/res_query.c +++ b/lib/libc/asr/res_query.c @@ -1,4 +1,4 @@ -/* $OpenBSD: res_query.c,v 1.8 2014/03/26 18:13:15 eric Exp $ */ +/* $OpenBSD: res_query.c,v 1.9 2015/10/05 02:57:16 guenther Exp $ */ /* * Copyright (c) 2012 Eric Faurot <eric@openbsd.org> * @@ -67,6 +67,7 @@ res_query(const char *name, int class, int type, u_char *ans, int anslen) return (ar.ar_datalen); } +DEF_WEAK(res_query); int res_search(const char *name, int class, int type, u_char *ans, int anslen) |