[Midnightbsd-cvs] mports [18033] trunk/www/node/files: add patches

laffer1 at midnightbsd.org laffer1 at midnightbsd.org
Thu Mar 5 20:15:58 EST 2015


Revision: 18033
          http://svnweb.midnightbsd.org/mports/?rev=18033
Author:   laffer1
Date:     2015-03-05 20:15:57 -0500 (Thu, 05 Mar 2015)
Log Message:
-----------
add patches

Added Paths:
-----------
    trunk/www/node/files/patch-deps_v8_src_platform-posix.cc
    trunk/www/node/files/patch-lib_dns.js

Added: trunk/www/node/files/patch-deps_v8_src_platform-posix.cc
===================================================================
--- trunk/www/node/files/patch-deps_v8_src_platform-posix.cc	                        (rev 0)
+++ trunk/www/node/files/patch-deps_v8_src_platform-posix.cc	2015-03-06 01:15:57 UTC (rev 18033)
@@ -0,0 +1,11 @@
+--- ./deps/v8/src/base/platform/platform-posix.cc.orig	2015-02-07 04:04:23.000000000 +0800
++++ ./deps/v8/src/base/platform/platform-posix.cc	2015-02-08 01:11:42.000000000 +0800
+@@ -328,7 +328,7 @@
+ #elif V8_OS_ANDROID
+   return static_cast<int>(gettid());
+ #else
+-  return static_cast<int>(pthread_self());
++  return static_cast<int>(reinterpret_cast<intptr_t>(pthread_self()));
+ #endif
+ }
+ 


Property changes on: trunk/www/node/files/patch-deps_v8_src_platform-posix.cc
___________________________________________________________________
Added: svn:eol-style
## -0,0 +1 ##
+native
\ No newline at end of property
Added: svn:mime-type
## -0,0 +1 ##
+text/plain
\ No newline at end of property
Added: trunk/www/node/files/patch-lib_dns.js
===================================================================
--- trunk/www/node/files/patch-lib_dns.js	                        (rev 0)
+++ trunk/www/node/files/patch-lib_dns.js	2015-03-06 01:15:57 UTC (rev 18033)
@@ -0,0 +1,14 @@
+--- lib/dns.js.orig	2015-02-13 23:42:28.000000000 +0800
++++ lib/dns.js	2015-02-13 23:46:39.000000000 +0800
+@@ -125,6 +125,11 @@
+         hints !== (exports.ADDRCONFIG | exports.V4MAPPED)) {
+       throw new TypeError('invalid argument: hints must use valid flags');
+     }
++    // FIXME(indutny): V4MAPPED on FreeBSD results in EAI_BADFLAGS, because
++    // the libc does not support it
++    if (process.platform === 'freebsd' && family !== 6) {
++      hints &= ~exports.V4MAPPED;
++    }
+   } else {
+     family = options >>> 0;
+   }


Property changes on: trunk/www/node/files/patch-lib_dns.js
___________________________________________________________________
Added: svn:eol-style
## -0,0 +1 ##
+native
\ No newline at end of property
Added: svn:mime-type
## -0,0 +1 ##
+text/plain
\ No newline at end of property


More information about the Midnightbsd-cvs mailing list