diff options
Diffstat (limited to 'meta/recipes-bsp/u-boot/files/0001-Include-cstddef-in-the-header-for-C.patch')
-rw-r--r-- | meta/recipes-bsp/u-boot/files/0001-Include-cstddef-in-the-header-for-C.patch | 27 |
1 files changed, 27 insertions, 0 deletions
diff --git a/meta/recipes-bsp/u-boot/files/0001-Include-cstddef-in-the-header-for-C.patch b/meta/recipes-bsp/u-boot/files/0001-Include-cstddef-in-the-header-for-C.patch new file mode 100644 index 0000000000..9a006e2cfd --- /dev/null +++ b/meta/recipes-bsp/u-boot/files/0001-Include-cstddef-in-the-header-for-C.patch | |||
@@ -0,0 +1,27 @@ | |||
1 | From 10c9a571f1c0472799f72b1924b039aab231e95f Mon Sep 17 00:00:00 2001 | ||
2 | From: Oleksandr Kravchuk <open.source@oleksandr-kravchuk.com> | ||
3 | Date: Thu, 16 Dec 2021 16:19:50 +0100 | ||
4 | Subject: [PATCH] Include cstddef in the header for C++ | ||
5 | |||
6 | So C++ compiler always has access to the definition of size_t. | ||
7 | |||
8 | Signed-off-by: Oleksandr Kravchuk <open.source@oleksandr-kravchuk.com> | ||
9 | Signed-off-by: Youngseok Jeong <youngseok1.jeong@lge.com> | ||
10 | Upstream-Status: Backport [v0.3.3 https://github.com/sbabic/libubootenv/pull/19/commits/764226a7de2ea79b182d92829922489537c766fa] | ||
11 | --- | ||
12 | src/libuboot.h | 2 ++ | ||
13 | 1 file changed, 2 insertions(+) | ||
14 | |||
15 | diff --git a/src/libuboot.h b/src/libuboot.h | ||
16 | index 88f0558..1f305f4 100644 | ||
17 | --- a/src/libuboot.h | ||
18 | +++ b/src/libuboot.h | ||
19 | @@ -6,6 +6,8 @@ | ||
20 | */ | ||
21 | |||
22 | #ifdef __cplusplus | ||
23 | +#include <cstddef> | ||
24 | + | ||
25 | extern "C" { | ||
26 | #endif | ||
27 | |||