Blob Blame History Raw
From 6d7cfeb8cfe35bc0e92af26be5f71629b60f2584 Mon Sep 17 00:00:00 2001
From: Kamal Heib <kheib@redhat.com>
Date: Mon, 16 Oct 2023 22:38:02 -0400
Subject: [PATCH] mflash: Fix build failure

Fix the following failure:

mflash_dev_capability.c:43:1: note: 'getenv' is defined in header '<stdlib.h>';
	did you forget to '#include <stdlib.h>'?
   42 | #include "mflash_dev_capability.h"
  +++ |+#include <stdlib.h>
   43 |

Signed-off-by: Kamal Heib <kheib@redhat.com>
---
 mflash/mflash_dev_capability.c | 1 +
 1 file changed, 1 insertion(+)

diff --git a/mflash/mflash_dev_capability.c b/mflash/mflash_dev_capability.c
index ff3c8bcf82ea..52e3e0ea7fc3 100644
--- a/mflash/mflash_dev_capability.c
+++ b/mflash/mflash_dev_capability.c
@@ -40,6 +40,7 @@
  */
 
 #include "mflash_dev_capability.h"
+#include <stdlib.h>
 
 // When (*status != MFE_OK) return value is undefined
 int is_four_byte_address_needed(mflash* mfl, MfError* status)
-- 
2.41.0