From addd6f421d5c00e5f6fab4b48b3e680d031e9c4b Mon Sep 17 00:00:00 2001 From: Ewan Date: Fri, 15 Dec 2023 15:00:46 +0000 Subject: [PATCH] Compat: Adjust how sys.h compat shim handles platforms without syslog present. --- include/compat/syslog.h | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/include/compat/syslog.h b/include/compat/syslog.h index c7a2608bdc..96e0b4ad42 100644 --- a/include/compat/syslog.h +++ b/include/compat/syslog.h @@ -3,7 +3,11 @@ * syslog.h compatibility shim */ -#ifndef _WIN32 +#if defined(_WIN32) +#define NO_SYSLOG +#elif defined(FREERTOS) +#define NO_SYSLOG +#else #include_next #endif @@ -14,7 +18,7 @@ #include -#ifdef _WIN32 +#ifdef NO_SYSLOG #define LOG_CONS LOG_INFO #define LOG_INFO 6 /* informational */ #define LOG_USER (1<<3) /* random user-level messages */