X-Git-Url: https://tinc-vpn.org/git/browse?p=tinc;a=blobdiff_plain;f=lib%2Ffake-getaddrinfo.c;h=29b3f9b0417767eade30943a29c1a4b30b84082b;hp=e17068028b151960e7dad23dbf6489e34ed4d717;hb=c1e8152f4fe5e4557784d8411e50006d461b8786;hpb=b657f0519456d05bcea5742017165793f79e56df diff --git a/lib/fake-getaddrinfo.c b/lib/fake-getaddrinfo.c index e1706802..29b3f9b0 100644 --- a/lib/fake-getaddrinfo.c +++ b/lib/fake-getaddrinfo.c @@ -11,6 +11,8 @@ #include "system.h" +#include "ipv4.h" +#include "ipv6.h" #include "fake-getaddrinfo.h" #ifndef HAVE_GAI_STRERROR @@ -40,7 +42,7 @@ void freeaddrinfo(struct addrinfo *ai) #endif /* !HAVE_FREEADDRINFO */ #ifndef HAVE_GETADDRINFO -static struct addrinfo *malloc_ai(int port, u_long addr) +static struct addrinfo *malloc_ai(int port, uint32_t addr) { struct addrinfo *ai;