summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorGravatar Christian Hesse <mail@eworm.de>2023-03-09 09:20:51 +0100
committerGravatar Christian Hesse <mail@eworm.de>2023-03-09 09:20:51 +0100
commitf0e9a1595c8a600be411cffa378dc785114b59d9 (patch)
tree4b0208d7ac6df78696017bddf4ba3c36ab400e58
parentbad1c26740dbc528d177afe10320ff91c48fef48 (diff)
downloadudp514-journal-f0e9a1595c8a600be411cffa378dc785114b59d9.tar.gz
udp514-journal-f0e9a1595c8a600be411cffa378dc785114b59d9.tar.zst
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
-rw-r--r--udp514-journal.h6
1 files 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 <sys/types.h>
#include <sys/socket.h>
#include <netinet/in.h>
@@ -35,6 +33,10 @@
#include <errno.h>
#include <time.h>
+#define SYSLOG_NAMES
+#define __USE_MISC
+#include <sys/syslog.h>
+
#include <systemd/sd-journal.h>
#include <systemd/sd-daemon.h>