net-libs/nodejs: Include stdarg.h
authorJeroen Roovers <jer@gentoo.org>
Thu, 13 Dec 2018 12:11:59 +0000 (13:11 +0100)
committerJeroen Roovers <jer@gentoo.org>
Thu, 13 Dec 2018 12:12:19 +0000 (13:12 +0100)
Bug: https://bugs.gentoo.org/673068
Package-Manager: Portage-2.3.52, Repoman-2.3.12
Signed-off-by: Jeroen Roovers <jer@gentoo.org>
net-libs/nodejs/files/nodejs-11.4.0-stdarg_h.patch [new file with mode: 0644]
net-libs/nodejs/nodejs-11.4.0.ebuild

diff --git a/net-libs/nodejs/files/nodejs-11.4.0-stdarg_h.patch b/net-libs/nodejs/files/nodejs-11.4.0-stdarg_h.patch
new file mode 100644 (file)
index 0000000..951c359
--- /dev/null
@@ -0,0 +1,10 @@
+--- a/src/node.cc
++++ b/src/node.cc
+@@ -75,6 +75,7 @@
+ #include <fcntl.h>  // _O_RDWR
+ #include <limits.h>  // PATH_MAX
+ #include <signal.h>
++#include <stdarg.h> // va_start/va_end
+ #include <stdio.h>
+ #include <stdlib.h>
+ #include <string.h>
index ede61e4e147b4f3c860b5108f751e4f1cecffbaf..0e67f6a9bcd38c7d3797763010f82903699b4bcc 100644 (file)
@@ -41,6 +41,7 @@ S="${WORKDIR}/node-v${PV}"
 PATCHES=(
        "${FILESDIR}"/${PN}-10.3.0-global-npm-config.patch
        "${FILESDIR}"/${PN}-11.4.0-llhttp.patch
+       "${FILESDIR}"/${PN}-11.4.0-stdarg_h.patch
 )
 
 pkg_pretend() {