osx compatibility

This commit is contained in:
jl777
2016-11-11 09:25:48 -03:00
parent 6ae728c777
commit 94eb04d704
5 changed files with 25 additions and 0 deletions

View File

@@ -16,6 +16,12 @@
#include "util.h"
#include "utilstrencodings.h"
#ifdef __APPLE__
#ifdef HAVE_GETADDRINFO_A
#undef HAVE_GETADDRINFO_A
#endif
#endif
#ifdef HAVE_GETADDRINFO_A
#include <netdb.h>
#endif