ipmiutil: Add missing headers for protypes of free/malloc/atoi

Signed-off-by: Khem Raj <raj.khem@gmail.com>
This commit is contained in:
Khem Raj 2022-09-03 00:46:18 -07:00
parent c26bc83d3a
commit d8e4451e47
2 changed files with 27 additions and 0 deletions

View File

@ -0,0 +1,26 @@
From 097e108b81f2571c4c51871044adf409b6954649 Mon Sep 17 00:00:00 2001
From: Khem Raj <raj.khem@gmail.com>
Date: Sat, 3 Sep 2022 00:44:52 -0700
Subject: [PATCH] ihpm: Include stdlib.h for malloc/free/atoi functions
Upstream-Status: Pending
Signed-off-by: Khem Raj <raj.khem@gmail.com>
---
util/ihpm.c | 1 +
1 file changed, 1 insertion(+)
diff --git a/util/ihpm.c b/util/ihpm.c
index 740ab74..5ad9ef6 100644
--- a/util/ihpm.c
+++ b/util/ihpm.c
@@ -68,6 +68,7 @@ typedef uint32_t socklen_t;
#endif
#include <stdio.h>
#include <stdarg.h>
+#include <stdlib.h> /* malloc/free/atoi */
#include <string.h>
#include <time.h>
--
2.37.3

View File

@ -22,6 +22,7 @@ PARALLEL_MAKE = ""
SRC_URI = "${SOURCEFORGE_MIRROR}/ipmiutil/ipmiutil-${PV}.tar.gz \
file://fix_systemd_path.patch \
file://0001-Prevent-access-times-from-changing-resulting-gzip-md.patch \
file://0001-ihpm-Include-stdlib.h-for-malloc-free-atoi-functions.patch \
"
SRC_URI[md5sum] = "292d6df25cad678bb27e5c8cdc6748f9"
SRC_URI[sha256sum] = "58ccdbd5755d7dd72478756715af09e9c73330dfad2b91dbf03d2ac504b301a3"