pkgsrc/lang/nodejs6/patches/patch-src_node.cc
fhajny c3646a58aa Import nodejs 6.9.1 (LTS) as lang/nodejs6.
Node.js is an evented I/O framework for the V8 JavaScript engine. It is
intended for writing scalable network programs such as web servers.

This package holds the 6.x LTS release.
2016-10-25 19:54:00 +00:00

15 lines
718 B
C++

$NetBSD: patch-src_node.cc,v 1.1 2016/10/25 19:54:00 fhajny Exp $
Handle NetBSD the same way as FreeBSD.
--- src/node.cc.orig 2016-05-17 19:53:07.000000000 +0000
+++ src/node.cc
@@ -3801,7 +3801,7 @@ static int RegisterDebugSignalHandler()
// Don't shrink the thread's stack on FreeBSD. Said platform decided to
// follow the pthreads specification to the letter rather than in spirit:
// https://lists.freebsd.org/pipermail/freebsd-current/2014-March/048885.html
-#ifndef __FreeBSD__
+#if !defined(__FreeBSD__) && !defined(__NetBSD__)
CHECK_EQ(0, pthread_attr_setstacksize(&attr, PTHREAD_STACK_MIN));
#endif // __FreeBSD__
CHECK_EQ(0, pthread_attr_setdetachstate(&attr, PTHREAD_CREATE_DETACHED));