[PATCH skeleton 2/2] hostcheckstop: Fix missing header

OpenBMC Patches openbmc-patches at stwcx.xyz
Wed Jun 29 23:01:00 AEST 2016


From: Joel Stanley <joel at jms.id.au>

Fixes the following error:

 host_checkstop_obj.c: In function ‘is_host_booted’:
 host_checkstop_obj.c:46:10: error: implicit declaration of function
 ‘strcmp’ [-Werror=implicit-function-declaration]
      if ((strcmp(system_state, "HOST_BOOTED") == 0) ||

Signed-off-by: Joel Stanley <joel at jms.id.au>
---
 hostcheckstop/host_checkstop_obj.c | 2 ++
 1 file changed, 2 insertions(+)

diff --git a/hostcheckstop/host_checkstop_obj.c b/hostcheckstop/host_checkstop_obj.c
index 74c940e..c6eab2f 100644
--- a/hostcheckstop/host_checkstop_obj.c
+++ b/hostcheckstop/host_checkstop_obj.c
@@ -1,3 +1,5 @@
+#include <string.h>
+
 #include <openbmc_intf.h>
 #include <openbmc.h>
 #include <gpio.h>
-- 
2.9.0




More information about the openbmc mailing list