Skip to content

Commit

Permalink
src: define AI_V4MAPPED for OpenBSD
Browse files Browse the repository at this point in the history
OpenBSD doesn't define AI_V4MAPPED by default. Defining it to 0
as done with other ports.

PR-URL: #427
Reviewed-By: Ben Noordhuis <[email protected]>
  • Loading branch information
qbit authored and bnoordhuis committed Jan 15, 2015
1 parent 753fcaa commit ca039b4
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions src/cares_wrap.cc
Original file line number Diff line number Diff line change
Expand Up @@ -24,6 +24,9 @@
# include <arpa/nameser.h>
#endif

#if defined(__OpenBSD__)
# define AI_V4MAPPED 0
#endif

namespace node {
namespace cares_wrap {
Expand Down

0 comments on commit ca039b4

Please sign in to comment.