Skip to content

Commit 7c75b1e

Browse files
committed
Compat: Adjust how syslog.h compat shim handles platforms without syslog present.
1 parent a5d536b commit 7c75b1e

File tree

1 file changed

+6
-2
lines changed

1 file changed

+6
-2
lines changed

include/compat/syslog.h

+6-2
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,11 @@
33
* syslog.h compatibility shim
44
*/
55

6-
#ifndef _WIN32
6+
#if defined(_WIN32)
7+
#define NO_SYSLOG
8+
#elif defined(FREERTOS)
9+
#define NO_SYSLOG
10+
#else
711
#include_next <syslog.h>
812
#endif
913

@@ -14,7 +18,7 @@
1418

1519
#include <stdarg.h>
1620

17-
#ifdef _WIN32
21+
#ifdef NO_SYSLOG
1822
#define LOG_CONS LOG_INFO
1923
#define LOG_INFO 6 /* informational */
2024
#define LOG_USER (1<<3) /* random user-level messages */

0 commit comments

Comments
 (0)