diff options
Diffstat (limited to 'libc/netbsd/resolv/__res_send.c')
-rw-r--r-- | libc/netbsd/resolv/__res_send.c | 37 |
1 files changed, 37 insertions, 0 deletions
diff --git a/libc/netbsd/resolv/__res_send.c b/libc/netbsd/resolv/__res_send.c new file mode 100644 index 0000000..198b05c --- /dev/null +++ b/libc/netbsd/resolv/__res_send.c @@ -0,0 +1,37 @@ +/* $NetBSD: __res_send.c,v 1.4 2005/09/13 01:44:10 christos Exp $ */ + +/* + * written by matthew green, 22/04/97. + * public domain. + */ + +#include <sys/cdefs.h> +#if defined(LIBC_SCCS) && !defined(lint) +__RCSID("$NetBSD: __res_send.c,v 1.4 2005/09/13 01:44:10 christos Exp $"); +#endif + +#if defined(__indr_reference) +__indr_reference(__res_send, res_send) +#else + +#include <sys/types.h> +#include <netinet/in.h> +#ifdef ANDROID_CHANGES +#include "resolv_private.h" +#else +#include <resolv.h> +#endif + +/* XXX THIS IS A MESS! SEE <resolv.h> XXX */ + +#undef res_send +int res_send(const u_char *, int, u_char *, int); + +int +res_send(const u_char *buf, int buflen, u_char *ans, int anssiz) +{ + + return __res_send(buf, buflen, ans, anssiz); +} + +#endif |