mirror of
https://github.com/nodejs/node.git
synced 2026-11-27 17:52:27 -05:00
src: update cares_wrap OpenBSD defines
Move the `#define`s back into `cares_wrap.cc`, as they are part of the implementation, not the declarations used in `cares_wrap.h`, and apply the suggestion from https://github.com/nodejs/node/pull/38572#discussion_r627809407 to make the defines a bit more generic and not check for OpenBSD specifically. Refs: https://github.com/nodejs/node/pull/38572 PR-URL: https://github.com/nodejs/node/pull/38670 Reviewed-By: Richard Lau <rlau@redhat.com> Reviewed-By: Colin Ihrig <cjihrig@gmail.com> Reviewed-By: James M Snell <jasnell@gmail.com> Reviewed-By: Rich Trott <rtrott@gmail.com>
This commit is contained in:
1 parent
d66f88ce97
commit
8809ef98f9
2 files changed
+13
-8
No files matched your search
@@ -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 {
|
||||
|
||||
|
||||
@@ -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 {
|
||||
|
||||
|
||||
Reference in new issue
Block a user