* [Buildroot] [PATCH v1] package/libserial: fix gcc-13.x compile (add patch to add missing cstdint include)
@ 2023-08-09 21:52 Peter Seiderer
2023-08-10 19:55 ` Thomas Petazzoni via buildroot
0 siblings, 1 reply; 2+ messages in thread
From: Peter Seiderer @ 2023-08-09 21:52 UTC (permalink / raw)
To: buildroot; +Cc: Simon Dawson
Add patch taken from upstream pull request ([1]) to fix gcc-13.x compile
failure because of a missing csdtint include.
Fixes:
In file included from libserial/SerialStreamBuf.h:36,
from SerialStreamBuf.cpp:34:
./libserial/SerialPortConstants.h:93:37: error: ‘uint8_t’ was not declared in this scope
93 | using DataBuffer = std::vector<uint8_t> ;
| ^~~~~~~
[1] https://github.com/crayzeewulf/libserial/pull/186
Signed-off-by: Peter Seiderer <ps.report@gmx.net>
---
| 28 +++++++++++++++++++
1 file changed, 28 insertions(+)
create mode 100644 package/libserial/0003-Add-missing-cstdint-header-for-uint8_t-type.patch
--git a/package/libserial/0003-Add-missing-cstdint-header-for-uint8_t-type.patch b/package/libserial/0003-Add-missing-cstdint-header-for-uint8_t-type.patch
new file mode 100644
index 0000000000..caf02d84f7
--- /dev/null
+++ b/package/libserial/0003-Add-missing-cstdint-header-for-uint8_t-type.patch
@@ -0,0 +1,28 @@
+From b4ae3313fb313b6acb7f701d898f834133f5bd53 Mon Sep 17 00:00:00 2001
+From: Jussi <jussi.hietanen@iki.fi>
+Date: Mon, 3 Jul 2023 15:59:07 +0300
+Subject: [PATCH] Add missing cstdint header for uint8_t type
+Content-Type: text/plain; charset="utf-8"
+Content-Transfer-Encoding: 8bit
+
+Upstream: https://github.com/crayzeewulf/libserial/commit/3b50bc2b7464ed527d1709b5c7ba86688e6aa3ec
+Signed-off-by: Peter Seiderer <ps.report@gmx.net>
+---
+ src/libserial/SerialPortConstants.h | 1 +
+ 1 file changed, 1 insertion(+)
+
+diff --git a/src/libserial/SerialPortConstants.h b/src/libserial/SerialPortConstants.h
+index 4f05bd5..88dca0b 100644
+--- a/src/libserial/SerialPortConstants.h
++++ b/src/libserial/SerialPortConstants.h
+@@ -33,6 +33,7 @@
+
+ #pragma once
+
++#include <cstdint>
+ #include <limits>
+ #include <stdexcept>
+ #include <string>
+--
+2.41.0
+
--
2.41.0
_______________________________________________
buildroot mailing list
buildroot@buildroot.org
https://lists.buildroot.org/mailman/listinfo/buildroot
^ permalink raw reply related [flat|nested] 2+ messages in thread
* Re: [Buildroot] [PATCH v1] package/libserial: fix gcc-13.x compile (add patch to add missing cstdint include)
2023-08-09 21:52 [Buildroot] [PATCH v1] package/libserial: fix gcc-13.x compile (add patch to add missing cstdint include) Peter Seiderer
@ 2023-08-10 19:55 ` Thomas Petazzoni via buildroot
0 siblings, 0 replies; 2+ messages in thread
From: Thomas Petazzoni via buildroot @ 2023-08-10 19:55 UTC (permalink / raw)
To: Peter Seiderer; +Cc: Simon Dawson, buildroot
On Wed, 9 Aug 2023 23:52:21 +0200
Peter Seiderer <ps.report@gmx.net> wrote:
> Add patch taken from upstream pull request ([1]) to fix gcc-13.x compile
> failure because of a missing csdtint include.
>
> Fixes:
>
> In file included from libserial/SerialStreamBuf.h:36,
> from SerialStreamBuf.cpp:34:
> ./libserial/SerialPortConstants.h:93:37: error: ‘uint8_t’ was not declared in this scope
> 93 | using DataBuffer = std::vector<uint8_t> ;
> | ^~~~~~~
>
> [1] https://github.com/crayzeewulf/libserial/pull/186
>
> Signed-off-by: Peter Seiderer <ps.report@gmx.net>
> ---
> ...sing-cstdint-header-for-uint8_t-type.patch | 28 +++++++++++++++++++
> 1 file changed, 28 insertions(+)
> create mode 100644 package/libserial/0003-Add-missing-cstdint-header-for-uint8_t-type.patch
Applied to master, thanks.
Thomas
--
Thomas Petazzoni, CTO, Bootlin
Embedded Linux and Kernel engineering
https://bootlin.com
_______________________________________________
buildroot mailing list
buildroot@buildroot.org
https://lists.buildroot.org/mailman/listinfo/buildroot
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2023-08-10 19:55 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2023-08-09 21:52 [Buildroot] [PATCH v1] package/libserial: fix gcc-13.x compile (add patch to add missing cstdint include) Peter Seiderer
2023-08-10 19:55 ` Thomas Petazzoni via buildroot
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox