X-Git-Url: https://git.syn-net.org/?p=debian%2Fuanytun.git;a=blobdiff_plain;f=src%2Fudp.c;fp=src%2Fudp.c;h=239e074c35b0d672cb4e8d0c48ad7fb73b4aa23c;hp=9217688105718aef3d463b3c1b82649ceda8954c;hb=efa4a48c37a982c6a961469101f3e01f3639c323;hpb=070b3647db25cc1517ff748c6ae5b36dc53d4603 diff --git a/src/udp.c b/src/udp.c index 9217688..239e074 100644 --- a/src/udp.c +++ b/src/udp.c @@ -65,6 +65,10 @@ #include #include +#ifndef AI_ADDRCONFIG +#define AI_ADDRCONFIG 0 +#endif + static int udp_resolv_local(udp_t* sock, const char* local_addr, const char* port, resolv_addr_type_t resolv_type, unsigned int* idx) { struct addrinfo hints, *res;