From b02b4f5967a7df356ad36e8f06b51b4440b8a83f Mon Sep 17 00:00:00 2001 From: Khem Raj Date: Wed, 31 Aug 2022 16:52:57 -0700 Subject: nana: Include stdlib.h form exit() and abort() functions Signed-off-by: Khem Raj --- ...de-stdlib.h-for-exit-and-abort-prototypes.patch | 52 ++++++++++++++++++++++ meta-oe/recipes-extended/nana/nana_2.5.bb | 1 + 2 files changed, 53 insertions(+) create mode 100644 meta-oe/recipes-extended/nana/nana/0001-Include-stdlib.h-for-exit-and-abort-prototypes.patch diff --git a/meta-oe/recipes-extended/nana/nana/0001-Include-stdlib.h-for-exit-and-abort-prototypes.patch b/meta-oe/recipes-extended/nana/nana/0001-Include-stdlib.h-for-exit-and-abort-prototypes.patch new file mode 100644 index 0000000000..f1712b17f5 --- /dev/null +++ b/meta-oe/recipes-extended/nana/nana/0001-Include-stdlib.h-for-exit-and-abort-prototypes.patch @@ -0,0 +1,52 @@ +From 0e32b1a07b1b032576c7b0a73d7f1a090a50dd23 Mon Sep 17 00:00:00 2001 +From: Khem Raj +Date: Wed, 31 Aug 2022 10:40:52 -0700 +Subject: [PATCH] Include stdlib.h for exit and abort prototypes + +Upstream-Status: Pending +Signed-off-by: Khem Raj +--- + src/I.c | 1 + + src/nana_error.c | 1 + + src/nanafilter.c | 1 + + 3 files changed, 3 insertions(+) + +diff --git a/src/I.c b/src/I.c +index e4577ae..4761af4 100644 +--- a/src/I.c ++++ b/src/I.c +@@ -30,6 +30,7 @@ + + + #include ++#include + #include + + /* +diff --git a/src/nana_error.c b/src/nana_error.c +index 51f99f2..c3a67d2 100644 +--- a/src/nana_error.c ++++ b/src/nana_error.c +@@ -30,6 +30,7 @@ + + #include + #include ++#include + + void nana_error(const char *message) { + fprintf(stderr, "nana_error: %s\n", message); +diff --git a/src/nanafilter.c b/src/nanafilter.c +index 191e8ef..1ab1978 100644 +--- a/src/nanafilter.c ++++ b/src/nanafilter.c +@@ -33,6 +33,7 @@ + static const char rcs[] ="Id: nanafilter.c,v 1.2 1998/06/10 06:58:55 pjm Exp "; + + #include ++#include + + void do_input(void); + void do_string(void); +-- +2.37.3 + diff --git a/meta-oe/recipes-extended/nana/nana_2.5.bb b/meta-oe/recipes-extended/nana/nana_2.5.bb index e0b6f569ca..c109d4f0fc 100644 --- a/meta-oe/recipes-extended/nana/nana_2.5.bb +++ b/meta-oe/recipes-extended/nana/nana_2.5.bb @@ -7,6 +7,7 @@ SECTION = "Development/Languages/C and C++" SRC_URI = "http://download.savannah.gnu.org/releases/${BPN}/${BP}.tar.gz \ file://change-mandir-to-DESTDIR.patch \ file://modify-acinclude.m4-and-configure.in.patch \ + file://0001-Include-stdlib.h-for-exit-and-abort-prototypes.patch \ " SRC_URI[md5sum] = "66c88aa0ad095b2e67673773135475f1" SRC_URI[sha256sum] = "fd1819ffea94b209513959447e4802afe2719600e7d161cd78b265a42812affa" -- cgit v1.2.3-54-g00ecf