nana: Include stdlib.h form exit() and abort() functions

Signed-off-by: Khem Raj <raj.khem@gmail.com>
This commit is contained in:
Khem Raj 2022-08-31 16:52:57 -07:00
parent fdb8bc38b1
commit b02b4f5967
2 changed files with 53 additions and 0 deletions

View File

@ -0,0 +1,52 @@
From 0e32b1a07b1b032576c7b0a73d7f1a090a50dd23 Mon Sep 17 00:00:00 2001
From: Khem Raj <raj.khem@gmail.com>
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 <raj.khem@gmail.com>
---
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 <stdio.h>
+#include <stdlib.h>
#include <I.h>
/*
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 <nana_error.h>
#include <stdio.h>
+#include <stdlib.h>
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 <stdio.h>
+#include <stdlib.h>
void do_input(void);
void do_string(void);
--
2.37.3

View File

@ -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"