aboutsummaryrefslogtreecommitdiffstats
path: root/python/gevent/cares_ntop.h
diff options
context:
space:
mode:
Diffstat (limited to 'python/gevent/cares_ntop.h')
-rw-r--r--python/gevent/cares_ntop.h7
1 files changed, 7 insertions, 0 deletions
diff --git a/python/gevent/cares_ntop.h b/python/gevent/cares_ntop.h
new file mode 100644
index 0000000..9ffc9dd
--- /dev/null
+++ b/python/gevent/cares_ntop.h
@@ -0,0 +1,7 @@
+#ifdef CARES_EMBED
+#include "ares_setup.h"
+#include "ares.h"
+#else
+#include <arpa/inet.h>
+#define ares_inet_ntop(w,x,y,z) inet_ntop(w,x,y,z)
+#endif