package/libserial: fix gcc-13.x compile (add patch to add missing cstdint include)
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> Signed-off-by: Thomas Petazzoni <thomas.petazzoni@bootlin.com>
This commit is contained in:
parent
a845276757
commit
27dc493780
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user