diff --git a/src/cares_wrap.cc b/src/cares_wrap.cc index 11206b16dd8e41..dbbdbc08380a7a 100644 --- a/src/cares_wrap.cc +++ b/src/cares_wrap.cc @@ -38,6 +38,19 @@ #include #include +#ifndef T_CAA +# define T_CAA 257 /* Certification Authority Authorization */ +#endif + +// OpenBSD does not define these +#ifndef AI_ALL +# define AI_ALL 0 +#endif +#ifndef AI_V4MAPPED +# define AI_V4MAPPED 0 +#endif + + namespace node { namespace cares_wrap { diff --git a/src/cares_wrap.h b/src/cares_wrap.h index 20d350a76321e8..27322367556374 100644 --- a/src/cares_wrap.h +++ b/src/cares_wrap.h @@ -32,14 +32,6 @@ # include #endif -#ifndef T_CAA -# define T_CAA 257 /* Certification Authority Authorization */ -#endif - -#if defined(__OpenBSD__) -# define AI_V4MAPPED 0 -#endif - namespace node { namespace cares_wrap {