pkgsrc/sysutils/rsyslog/patches/patch-tools_syslogd.c
fhajny 026a8e7b65 Update rsyslog to 8.7.0.
- add message metadata "system" to msg object
  this permits to store metadata alongside the message
- imfile: add support for "filename" metadata
  this is useful in cases where wildcards are used
- imptcp: make stats counter names consistent with what imudp, imtcp uses
- added new module "omkafka" to support writing to Apache Kafka
- omfwd: add new "udp.senddelay" parameter
- mmnormalize enhancements
- RainerScript "foreach" iterator and array reading support
- now requires liblognorm >= 1.0.2
- add support for systemd >= 209 library names
- BSD "ntp" facility (value 12) is now also supported in filter
- bugfix: global(localHostName="xxx") was not respected in all modules
- bugfix: emit correct error message on config-file-not-found
- bugfix: impstats emitted invalid JSON format (if JSON was selected)
- bugfix: (small) memory leak in omfile's outchannel code
- bugfix: imuxsock did not deactivate some code not supported by platform
2015-01-16 16:58:28 +00:00

27 lines
589 B
C

$NetBSD: patch-tools_syslogd.c,v 1.3 2015/01/16 16:58:28 fhajny Exp $
Need errno.h on NetBSD. Fix default PID path.
--- tools/syslogd.c.orig 2014-12-02 10:15:16.000000000 +0000
+++ tools/syslogd.c
@@ -58,15 +58,19 @@
#include <time.h>
#include <assert.h>
-#ifdef OS_SOLARIS
+#if defined(OS_SOLARIS) || defined(OS_BSD)
# include <errno.h>
+#else
+# include <sys/errno.h>
+#endif
+
+#ifdef OS_SOLARIS
# include <fcntl.h>
# include <stropts.h>
# include <sys/termios.h>
# include <sys/types.h>
#else
# include <libgen.h>
-# include <sys/errno.h>
#endif
#include <sys/ioctl.h>