X-Git-Url: http://nsz.repo.hu/git/?a=blobdiff_plain;ds=sidebyside;f=src%2Fnetwork%2Flookup.h;h=54b2f8b5bff1bdcd5290fdd5de9f4699a50ce0c4;hb=9b132e556774c744f9052581d2d8d0fab417e97c;hp=f1952af55918adde74b635de504752f0402dd313;hpb=7e399fabd3db2c528b5982803eeba2841f547695;p=musl diff --git a/src/network/lookup.h b/src/network/lookup.h index f1952af5..54b2f8b5 100644 --- a/src/network/lookup.h +++ b/src/network/lookup.h @@ -4,6 +4,18 @@ #include #include #include +#include +#include + +struct aibuf { + struct addrinfo ai; + union sa { + struct sockaddr_in sin; + struct sockaddr_in6 sin6; + } sa; + volatile int lock[1]; + short slot, ref; +}; struct address { int family; @@ -38,6 +50,6 @@ hidden int __lookup_ipliteral(struct address buf[static 1], const char *name, in hidden int __get_resolv_conf(struct resolvconf *, char *, size_t); hidden int __res_msend_rc(int, const unsigned char *const *, const int *, unsigned char *const *, int *, int, const struct resolvconf *); -hidden int __dns_parse(const unsigned char *, int, int (*)(void *, int, const void *, int, const void *), void *); +hidden int __dns_parse(const unsigned char *, int, int (*)(void *, int, const void *, int, const void *, int), void *); #endif