Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/nodejs/node.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--src/cares_wrap.cc13
-rw-r--r--src/cares_wrap.h8
2 files changed, 13 insertions, 8 deletions
diff --git a/src/cares_wrap.cc b/src/cares_wrap.cc
index c0368739ff0..1b8639fa03f 100644
--- a/src/cares_wrap.cc
+++ b/src/cares_wrap.cc
@@ -38,6 +38,19 @@
#include <vector>
#include <unordered_set>
+#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 20d350a7632..27322367556 100644
--- a/src/cares_wrap.h
+++ b/src/cares_wrap.h
@@ -32,14 +32,6 @@
# include <arpa/nameser.h>
#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 {