Blame 0001-mflash-Fix-build-failure.patch
|
Kamal Heib |
2cd407 |
From 6d7cfeb8cfe35bc0e92af26be5f71629b60f2584 Mon Sep 17 00:00:00 2001
|
|
Kamal Heib |
2cd407 |
From: Kamal Heib <kheib@redhat.com>
|
|
Kamal Heib |
2cd407 |
Date: Mon, 16 Oct 2023 22:38:02 -0400
|
|
Kamal Heib |
2cd407 |
Subject: [PATCH] mflash: Fix build failure
|
|
Kamal Heib |
2cd407 |
|
|
Kamal Heib |
2cd407 |
Fix the following failure:
|
|
Kamal Heib |
2cd407 |
|
|
Kamal Heib |
2cd407 |
mflash_dev_capability.c:43:1: note: 'getenv' is defined in header '<stdlib.h>';
|
|
Kamal Heib |
2cd407 |
did you forget to '#include <stdlib.h>'?
|
|
Kamal Heib |
2cd407 |
42 | #include "mflash_dev_capability.h"
|
|
Kamal Heib |
2cd407 |
+++ |+#include <stdlib.h>
|
|
Kamal Heib |
2cd407 |
43 |
|
|
Kamal Heib |
2cd407 |
|
|
Kamal Heib |
2cd407 |
Signed-off-by: Kamal Heib <kheib@redhat.com>
|
|
Kamal Heib |
2cd407 |
---
|
|
Kamal Heib |
2cd407 |
mflash/mflash_dev_capability.c | 1 +
|
|
Kamal Heib |
2cd407 |
1 file changed, 1 insertion(+)
|
|
Kamal Heib |
2cd407 |
|
|
Kamal Heib |
2cd407 |
diff --git a/mflash/mflash_dev_capability.c b/mflash/mflash_dev_capability.c
|
|
Kamal Heib |
2cd407 |
index ff3c8bcf82ea..52e3e0ea7fc3 100644
|
|
Kamal Heib |
2cd407 |
--- a/mflash/mflash_dev_capability.c
|
|
Kamal Heib |
2cd407 |
+++ b/mflash/mflash_dev_capability.c
|
|
Kamal Heib |
2cd407 |
@@ -40,6 +40,7 @@
|
|
Kamal Heib |
2cd407 |
*/
|
|
Kamal Heib |
2cd407 |
|
|
Kamal Heib |
2cd407 |
#include "mflash_dev_capability.h"
|
|
Kamal Heib |
2cd407 |
+#include <stdlib.h>
|
|
Kamal Heib |
2cd407 |
|
|
Kamal Heib |
2cd407 |
// When (*status != MFE_OK) return value is undefined
|
|
Kamal Heib |
2cd407 |
int is_four_byte_address_needed(mflash* mfl, MfError* status)
|
|
Kamal Heib |
2cd407 |
--
|
|
Kamal Heib |
2cd407 |
2.41.0
|
|
Kamal Heib |
2cd407 |
|