X-Git-Url: https://git.octo.it/?a=blobdiff_plain;f=src%2Fsysevent.c;h=6ef79f9579c1772615c5d12646496d6117b8d1da;hb=0962f3c3926fd1f70683590bc5c01be1c99a754c;hp=94e99e9a35d8e606059801c5d3250ce03c8e904d;hpb=e0869a8e0ee4c5ea6fea154e64ac1d6d183ec941;p=collectd.git 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 */