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 */