diff options
Diffstat (limited to 'python/gevent/resolver/cares_pton.h')
-rw-r--r-- | python/gevent/resolver/cares_pton.h | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/python/gevent/resolver/cares_pton.h b/python/gevent/resolver/cares_pton.h new file mode 100644 index 0000000..85af403 --- /dev/null +++ b/python/gevent/resolver/cares_pton.h @@ -0,0 +1,8 @@ +#ifdef CARES_EMBED +#include "ares_setup.h" +#include "ares_inet_net_pton.h" +#else +#include <arpa/inet.h> +#define ares_inet_pton(x,y,z) inet_pton(x,y,z) +#define ares_inet_net_pton(w,x,y,z) inet_net_pton(w,x,y,z) +#endif |