mirror of
https://github.com/Stichting-MINIX-Research-Foundation/pkgsrc-ng.git
synced 2025-09-22 19:24:22 -04:00
18 lines
705 B
C++
18 lines
705 B
C++
$NetBSD: patch-src_cares__wrap.cc,v 1.1 2015/04/30 15:04:56 ryoon Exp $
|
|
|
|
NetBSD has no AI_V4MAPPED.
|
|
|
|
--- src/cares_wrap.cc.orig 2015-03-31 22:13:01.000000000 +0000
|
|
+++ src/cares_wrap.cc
|
|
@@ -1301,8 +1301,10 @@ static void Initialize(Handle<Object> ta
|
|
Integer::New(env->isolate(), AF_UNSPEC));
|
|
target->Set(FIXED_ONE_BYTE_STRING(env->isolate(), "AI_ADDRCONFIG"),
|
|
Integer::New(env->isolate(), AI_ADDRCONFIG));
|
|
+#if defined(AI_V4MAPPED)
|
|
target->Set(FIXED_ONE_BYTE_STRING(env->isolate(), "AI_V4MAPPED"),
|
|
Integer::New(env->isolate(), AI_V4MAPPED));
|
|
+#endif
|
|
|
|
Local<FunctionTemplate> aiw =
|
|
FunctionTemplate::New(env->isolate(), NewGetAddrInfoReqWrap);
|