From f0e9a1595c8a600be411cffa378dc785114b59d9 Mon Sep 17 00:00:00 2001 From: Christian Hesse Date: Thu, 9 Mar 2023 09:20:51 +0100 Subject: include sys/syslog.h explicitly, define __USE_MISC Starting with glibc 2.36 the facilitynames and prioritynames are guarded with __USE_MISC. https://sourceware.org/git/?p=glibc.git;a=commit;h=cac6b54ae2e99013d472ce548405886d301c73e4 --- udp514-journal.h | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/udp514-journal.h b/udp514-journal.h index d8b68ba..05f7012 100644 --- a/udp514-journal.h +++ b/udp514-journal.h @@ -21,8 +21,6 @@ #define _POSIX_C_SOURCE 200809L -#define SYSLOG_NAMES - #include #include #include @@ -35,6 +33,10 @@ #include #include +#define SYSLOG_NAMES +#define __USE_MISC +#include + #include #include -- cgit v1.2.3-70-g09d2