mirror of
https://github.com/novatiq/packages.git
synced 2026-04-30 07:28:39 +01:00
libupm: support node.js v12
Maintainer: @blogic me Compile tested: head r14241-ba2ddba, x86_64 Run tested: x86_64 (VirtualBox) Description: Addressed the build failure with node.js version 12. Signed-off-by: Hirokazu MORIKAWA <morikw2@gmail.com>
This commit is contained in:
@@ -9,7 +9,7 @@ include $(TOPDIR)/rules.mk
|
|||||||
|
|
||||||
PKG_NAME:=libupm
|
PKG_NAME:=libupm
|
||||||
PKG_VERSION:=2.0.0
|
PKG_VERSION:=2.0.0
|
||||||
PKG_RELEASE:=1
|
PKG_RELEASE:=2
|
||||||
|
|
||||||
PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tar.gz
|
PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tar.gz
|
||||||
PKG_SOURCE_URL:=https://codeload.github.com/intel-iot-devkit/upm/tar.gz/v$(PKG_VERSION)?
|
PKG_SOURCE_URL:=https://codeload.github.com/intel-iot-devkit/upm/tar.gz/v$(PKG_VERSION)?
|
||||||
|
|||||||
@@ -0,0 +1,11 @@
|
|||||||
|
--- a/src/carrays_uint32_t.i
|
||||||
|
+++ b/src/carrays_uint32_t.i
|
||||||
|
@@ -24,7 +24,7 @@
|
||||||
|
%typemap(in) uint32_t {
|
||||||
|
int ecode2 = 0 ;
|
||||||
|
if (($input)->IsInt32())
|
||||||
|
- $1 = ($input)->Uint32Value();
|
||||||
|
+ $1 = ($input)->Uint32Value(SWIGV8_CURRENT_CONTEXT()).FromJust();
|
||||||
|
else
|
||||||
|
SWIG_exception_fail(SWIG_ArgError(ecode2), "failed to convert uint32");
|
||||||
|
}
|
||||||
Reference in New Issue
Block a user