Skip to content

Commit

Permalink
Compat: Adjust how syslog.h compat shim handles platforms without sys…
Browse files Browse the repository at this point in the history
…log present.
  • Loading branch information
projectgoav committed Dec 15, 2023
1 parent a5d536b commit 7c75b1e
Showing 1 changed file with 6 additions and 2 deletions.
8 changes: 6 additions & 2 deletions include/compat/syslog.h
Original file line number Diff line number Diff line change
Expand Up @@ -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 <syslog.h>
#endif

Expand All @@ -14,7 +18,7 @@

#include <stdarg.h>

#ifdef _WIN32
#ifdef NO_SYSLOG
#define LOG_CONS LOG_INFO
#define LOG_INFO 6 /* informational */
#define LOG_USER (1<<3) /* random user-level messages */
Expand Down

0 comments on commit 7c75b1e

Please sign in to comment.