diff --git a/drivers/syslog/syslog_channel.c b/drivers/syslog/syslog_channel.c index c05c4ba1df..bff3d8d1cc 100644 --- a/drivers/syslog/syslog_channel.c +++ b/drivers/syslog/syslog_channel.c @@ -27,6 +27,7 @@ #include #include #include +#include #include #include @@ -95,7 +96,9 @@ static struct syslog_channel_s g_rpmsg_channel = #endif #if defined(CONFIG_SYSLOG_DEFAULT) +# if defined(CONFIG_ARCH_LOWPUTC) static sem_t g_syslog_default_sem = SEM_INITIALIZER(1); +# endif static const struct syslog_channel_ops_s g_default_channel_ops = {