summaryrefslogtreecommitdiffstats
path: root/lib/libc/asr/res_send_async.c
diff options
context:
space:
mode:
authorguenther <guenther@openbsd.org>2015-09-14 11:52:49 +0000
committerguenther <guenther@openbsd.org>2015-09-14 11:52:49 +0000
commit5826fd8c7d12c123a8902345d0fa32381e3d949d (patch)
treef27c982d319b41efd9639667fdbab30d836df636 /lib/libc/asr/res_send_async.c
parentWhen the active pane changes, redraw panes if the style has (diff)
downloadwireguard-openbsd-5826fd8c7d12c123a8902345d0fa32381e3d949d.tar.xz
wireguard-openbsd-5826fd8c7d12c123a8902345d0fa32381e3d949d.zip
Wrap <asr.h> so internal calls go direct and all the symbols are weak
Diffstat (limited to 'lib/libc/asr/res_send_async.c')
-rw-r--r--lib/libc/asr/res_send_async.c4
1 files changed, 3 insertions, 1 deletions
diff --git a/lib/libc/asr/res_send_async.c b/lib/libc/asr/res_send_async.c
index b64c6350a6e..da90557e804 100644
--- a/lib/libc/asr/res_send_async.c
+++ b/lib/libc/asr/res_send_async.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: res_send_async.c,v 1.25 2015/09/09 15:49:34 deraadt Exp $ */
+/* $OpenBSD: res_send_async.c,v 1.26 2015/09/14 11:52:49 guenther Exp $ */
/*
* Copyright (c) 2012 Eric Faurot <eric@openbsd.org>
*
@@ -95,6 +95,7 @@ res_send_async(const unsigned char *buf, int buflen, void *asr)
_asr_ctx_unref(ac);
return (NULL);
}
+DEF_WEAK(res_send_async);
/*
* Unlike res_query(), this version will actually return the packet
@@ -115,6 +116,7 @@ res_query_async(const char *name, int class, int type, void *asr)
return (as);
}
+DEF_WEAK(res_query_async);
struct asr_query *
_res_query_async_ctx(const char *name, int class, int type, struct asr_ctx *a_ctx)