SHA256
1
0
forked from pool/ipmitool
ipmitool/0008-ID-474-Compile-fix-on-nonlinux-systems.patch

31 lines
720 B
Diff
Raw Normal View History

From 5db314f694f75c575cd7c9ffe9ee57aaf3a88866 Mon Sep 17 00:00:00 2001
From: Leonid Nevecherya <nevecherya@gmail.com>
Date: Tue, 17 Jan 2017 11:00:37 +0300
Subject: [PATCH 08/17] ID:474 - Compile fix on nonlinux systems
This patch fixes compilation on systems without a separate <malloc.h>.
---
lib/ipmi_cfgp.c | 6 +++++-
1 file changed, 5 insertions(+), 1 deletion(-)
diff --git a/lib/ipmi_cfgp.c b/lib/ipmi_cfgp.c
index b8af80d..dfc4743 100644
--- a/lib/ipmi_cfgp.c
+++ b/lib/ipmi_cfgp.c
@@ -30,7 +30,11 @@
* POSSIBILITY OF SUCH DAMAGE.
*/
-#include <malloc.h>
+#ifdef HAVE_MALLOC_H
+# include <malloc.h>
+#else
+# include <stdlib.h>
+#endif
#include <string.h>
#include <ipmitool/helper.h>
--
1.8.5.6