summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorChristian Pointner <equinox@anytun.org>2014-08-30 13:11:07 +0000
committerChristian Pointner <equinox@anytun.org>2014-08-30 13:11:07 +0000
commit31b74f86b046a24f253c37e69243b18996d2e3bf (patch)
treefcfdd9f90765ca99e39c488f20e61ed0f394d138 /src
parentfixe bsd tun device warnings (diff)
fixed missing AI_ADDRCONFIG on some platforms
Diffstat (limited to 'src')
-rw-r--r--src/udp.c4
1 files changed, 4 insertions, 0 deletions
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 <arpa/inet.h>
#include <netinet/in.h>
+#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;