Brad Bishop | e42b3e3 | 2020-01-15 22:08:42 -0500 | [diff] [blame] | 1 | From 1788762863cd1f657697575f6e73a22e661ccb43 Mon Sep 17 00:00:00 2001 |
| 2 | From: Khem Raj <raj.khem@gmail.com> |
| 3 | Date: Mon, 23 Dec 2019 10:32:54 -0800 |
| 4 | Subject: [PATCH 2/2] include missing <stdexcept> for runtime_error |
| 5 | MIME-Version: 1.0 |
| 6 | Content-Type: text/plain; charset=UTF-8 |
| 7 | Content-Transfer-Encoding: 8bit |
| 8 | |
| 9 | Fixes |
| 10 | error: ‘runtime_error’ is not a member of ‘std’ |
| 11 | |
| 12 | Upstream-Status: Submitted [https://github.com/mguentner/cannelloni/pull/22] |
| 13 | Signed-off-by: Khem Raj <raj.khem@gmail.com> |
| 14 | --- |
| 15 | parser.cpp | 1 + |
| 16 | 1 file changed, 1 insertion(+) |
| 17 | |
| 18 | diff --git a/parser.cpp b/parser.cpp |
| 19 | index 4afb9e0..5bcdbde 100644 |
| 20 | --- a/parser.cpp |
| 21 | +++ b/parser.cpp |
| 22 | @@ -2,6 +2,7 @@ |
| 23 | |
| 24 | #include <arpa/inet.h> |
| 25 | #include <string.h> |
| 26 | +#include <stdexcept> |
| 27 | |
| 28 | void parseFrames(uint16_t len, const uint8_t* buffer, std::function<canfd_frame*()> frameAllocator, |
| 29 | std::function<void(canfd_frame*, bool)> frameReceiver) |
| 30 | -- |
| 31 | 2.24.1 |
| 32 | |