summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorKhem Raj <raj.khem@gmail.com>2022-01-14 09:24:33 -0800
committerKhem Raj <raj.khem@gmail.com>2022-01-18 09:01:51 -0800
commit18448441868b2db1c959b5993253952e084d4dea (patch)
tree73766ffef9d024179a51226f8ccdb65fca05bb75
parent1b3b4c65b3fdfce13bf843f1940cde5981cda205 (diff)
downloadmeta-openembedded-18448441868b2db1c959b5993253952e084d4dea.tar.gz
tnftp: Add missing header stdc-predef.h
musl highlights this problem Fixes | ../../tnftp-20210827/libedit/chartype.h:47:3: error: wchar_t must store ISO 10646 characters | #error wchar_t must store ISO 10646 characters | ^ | 1 error generated. Signed-off-by: Khem Raj <raj.khem@gmail.com> Cc: Yi Zhao <yi.zhao@windriver.com>
-rw-r--r--meta-networking/recipes-support/tnftp/tnftp/0001-libedit-Include-missing-header-stdc-predef.h.patch31
-rw-r--r--meta-networking/recipes-support/tnftp/tnftp_20210827.bb1
2 files changed, 32 insertions, 0 deletions
diff --git a/meta-networking/recipes-support/tnftp/tnftp/0001-libedit-Include-missing-header-stdc-predef.h.patch b/meta-networking/recipes-support/tnftp/tnftp/0001-libedit-Include-missing-header-stdc-predef.h.patch
new file mode 100644
index 0000000000..07a3c739b8
--- /dev/null
+++ b/meta-networking/recipes-support/tnftp/tnftp/0001-libedit-Include-missing-header-stdc-predef.h.patch
@@ -0,0 +1,31 @@
1From 9f2797d1ab8557b44a1f8d6d4d0b6de368d55e80 Mon Sep 17 00:00:00 2001
2From: Khem Raj <raj.khem@gmail.com>
3Date: Fri, 14 Jan 2022 09:22:59 -0800
4Subject: [PATCH] libedit: Include missing header stdc-predef.h
5
6__STDC_ISO_10646__ is defined in stdc-predef.h instead of expecting
7every other file including this header, add it here
8
9Upstream-Status: Pending
10Signed-off-by: Khem Raj <raj.khem@gmail.com>
11---
12 libedit/chartype.h | 3 +++
13 1 file changed, 3 insertions(+)
14
15diff --git a/libedit/chartype.h b/libedit/chartype.h
16index 319be30..2d3e20c 100644
17--- a/libedit/chartype.h
18+++ b/libedit/chartype.h
19@@ -30,6 +30,9 @@
20 #ifndef _h_chartype_f
21 #define _h_chartype_f
22
23+/* for __STDC_ISO_10646__ */
24+#include <stdc-predef.h>
25+
26 /* Ideally we should also test the value of the define to see if it
27 * supports non-BMP code points without requiring UTF-16, but nothing
28 * seems to actually advertise this properly, despite Unicode 3.1 having
29--
302.34.1
31
diff --git a/meta-networking/recipes-support/tnftp/tnftp_20210827.bb b/meta-networking/recipes-support/tnftp/tnftp_20210827.bb
index 111a63d297..8c5892668d 100644
--- a/meta-networking/recipes-support/tnftp/tnftp_20210827.bb
+++ b/meta-networking/recipes-support/tnftp/tnftp_20210827.bb
@@ -15,6 +15,7 @@ LICENSE = "BSD-4-Clause"
15DEPENDS = "ncurses" 15DEPENDS = "ncurses"
16 16
17SRC_URI = "ftp://ftp.netbsd.org/pub/NetBSD/misc/tnftp/${BPN}-${PV}.tar.gz \ 17SRC_URI = "ftp://ftp.netbsd.org/pub/NetBSD/misc/tnftp/${BPN}-${PV}.tar.gz \
18 file://0001-libedit-Include-missing-header-stdc-predef.h.patch \
18" 19"
19 20
20inherit autotools update-alternatives pkgconfig 21inherit autotools update-alternatives pkgconfig