Fixes
rwmem/opts.cpp:87:15: error: 'invalid_argument' is not a member of 'std'
throw std::invalid_argument(string("Unrecognized option ") + argv[optind - 1]);
           ^~~~~~~~~~~~~~~~

Signed-off-by: Khem Raj <raj.k...@gmail.com>
---
 ...t-for-invalid_argument-and-out_of_ra.patch | 35 +++++++++++++++++++
 recipes-bsp/rwmem/rwmem_1.2.bb                |  1 +
 2 files changed, 36 insertions(+)
 create mode 100644 
recipes-bsp/rwmem/rwmem/0001-include-stdexcept-for-invalid_argument-and-out_of_ra.patch

diff --git 
a/recipes-bsp/rwmem/rwmem/0001-include-stdexcept-for-invalid_argument-and-out_of_ra.patch
 
b/recipes-bsp/rwmem/rwmem/0001-include-stdexcept-for-invalid_argument-and-out_of_ra.patch
new file mode 100644
index 00000000..41999492
--- /dev/null
+++ 
b/recipes-bsp/rwmem/rwmem/0001-include-stdexcept-for-invalid_argument-and-out_of_ra.patch
@@ -0,0 +1,35 @@
+From b5677a3461f4b44b78e74a6b46629606adad11c1 Mon Sep 17 00:00:00 2001
+From: Khem Raj <raj.k...@gmail.com>
+Date: Mon, 23 Dec 2019 15:52:15 -0800
+Subject: [PATCH] include <stdexcept> for invalid_argument and out_of_range
+
+Upstream-Status: Submitted [https://github.com/tomba/rwmem/pull/6]
+Signed-off-by: Khem Raj <raj.k...@gmail.com>
+---
+ librwmem/regs.cpp | 1 +
+ rwmem/opts.cpp    | 1 +
+ 2 files changed, 2 insertions(+)
+
+diff --git a/librwmem/regs.cpp b/librwmem/regs.cpp
+index 5e5c22f..669d10d 100644
+--- a/librwmem/regs.cpp
++++ b/librwmem/regs.cpp
+@@ -1,4 +1,5 @@
+ #include <memory>
++#include <stdexcept>
+ #include <cstdint>
+ #include <cstdlib>
+ #include <cstring>
+diff --git a/rwmem/opts.cpp b/rwmem/opts.cpp
+index 0a10567..e521d56 100644
+--- a/rwmem/opts.cpp
++++ b/rwmem/opts.cpp
+@@ -1,4 +1,5 @@
+ #include <algorithm>
++#include <stdexcept>
+ 
+ #include <unistd.h>
+ #include <getopt.h>
+-- 
+2.24.1
+
diff --git a/recipes-bsp/rwmem/rwmem_1.2.bb b/recipes-bsp/rwmem/rwmem_1.2.bb
index 0545b0cc..9177e60d 100644
--- a/recipes-bsp/rwmem/rwmem_1.2.bb
+++ b/recipes-bsp/rwmem/rwmem_1.2.bb
@@ -15,6 +15,7 @@ SRCREV_FORMAT = "rwmem_inih_pybind11"
 SRC_URI = "git://github.com/tomba/rwmem.git;protocol=https;name=rwmem \
            
git://github.com/benhoyt/inih.git;protocol=https;name=inih;nobranch=1;destsuffix=git/ext/inih
 \
            
git://github.com/pybind/pybind11.git;protocol=https;name=pybind11;nobranch=1;destsuffix=git/ext/pybind11
 \
+           
file://0001-include-stdexcept-for-invalid_argument-and-out_of_ra.patch \
            "
 
 S = "${WORKDIR}/git"
-- 
2.24.1

-=-=-=-=-=-=-=-=-=-=-=-
Links: You receive all messages sent to this group.

View/Reply Online (#12588): 
https://lists.yoctoproject.org/g/meta-ti/message/12588
Mute This Topic: https://lists.yoctoproject.org/mt/69241536/21656
Group Owner: meta-ti+ow...@lists.yoctoproject.org
Unsubscribe: https://lists.yoctoproject.org/g/meta-ti/unsub  
[arch...@mail-archive.com]
-=-=-=-=-=-=-=-=-=-=-=-

Reply via email to