From: Andrew Bays Date: Tue, 27 Feb 2018 18:18:05 +0000 (-0500) Subject: Only declare rsyslog keys if yajl2 present X-Git-Url: https://git.verplant.org/?a=commitdiff_plain;h=0962f3c3926fd1f70683590bc5c01be1c99a754c;p=collectd.git Only declare rsyslog keys if yajl2 present --- diff --git a/src/sysevent.c b/src/sysevent.c index 94e99e9a..6ef79f95 100644 --- a/src/sysevent.c +++ b/src/sysevent.c @@ -119,10 +119,12 @@ static int buffer_length = 10; static int monitor_all_messages = 1; +#if HAVE_YAJL_V2 static const char *rsyslog_keys[3] = {"@timestamp", "@source_host", "@message"}; static const char *rsyslog_field_keys[5] = { "facility", "severity", "severity-num", "program", "processid"}; - +#endif + /* * Private functions */