keep nodejs compatible with libc-ares public headers
authorJérémy Lal <kapouer@melix.org>
Sun, 2 Feb 2025 00:03:59 +0000 (01:03 +0100)
committerJérémy Lal <kapouer@melix.org>
Sun, 2 Feb 2025 00:03:59 +0000 (01:03 +0100)
Forwarded: not-needed
Last-Update: 2021-10-20

Gbp-Pq: Topic deps
Gbp-Pq: Name cares.patch

src/cares_wrap.h

index 021ef1c9de518e0ddb28ca87d85fa6eb4102ab04..c8148287d1c2a150ea731106ec03924cd5b2b394 100644 (file)
 # include <netdb.h>
 #endif  // __POSIX__
 
-# include <ares_nameser.h>
+#if defined(__ANDROID__) || \
+    defined(__MINGW32__) || \
+    defined(__OpenBSD__) || \
+    defined(_MSC_VER)
+# include <nameser.h>
+#else
+# include <arpa/nameser.h>
+#endif
+
 
 namespace node {
 namespace cares_wrap {