[PATCH] common/log_syslog.c: Add missing include of <env.h>

Tom Rini trini at konsulko.com
Wed Jul 2 03:05:54 CEST 2025


This file was making environment calls without including <env.h> and so
relying on an indirect inclusion from elsewhere. Add the missing include
directly.

Signed-off-by: Tom Rini <trini at konsulko.com>
---
 common/log_syslog.c | 1 +
 1 file changed, 1 insertion(+)

diff --git a/common/log_syslog.c b/common/log_syslog.c
index 0dcb5f7cdeae..73bd3aca07e0 100644
--- a/common/log_syslog.c
+++ b/common/log_syslog.c
@@ -5,6 +5,7 @@
  * Copyright (c) 2020, Heinrich Schuchardt <xypron.glpk at gmx.de>
  */
 
+#include <env.h>
 #include <log.h>
 #include <net.h>
 #include <asm/global_data.h>
-- 
2.43.0



More information about the U-Boot mailing list