--- a/ping.h +++ b/ping.h @@ -44,6 +44,10 @@ #define getnameinfo_flags 0 #endif +#ifndef AI_CANONIDN +#define AI_CANONIDN 0x0080 +#endif + #ifndef WITHOUT_IFADDRS #include #endif