diff --git a/src/cares_wrap.cc b/src/cares_wrap.cc index e21fc2e303897f..58bfea1b30dbfd 100644 --- a/src/cares_wrap.cc +++ b/src/cares_wrap.cc @@ -49,7 +49,11 @@ # include #endif -#if defined(__OpenBSD__) +// OpenBSD does not define these +#ifndef AI_ALL +# define AI_ALL 0 +#endif +#ifndef AI_V4MAPPED # define AI_V4MAPPED 0 #endif