Only declare rsyslog keys if yajl2 present
authorAndrew Bays <abays@redhat.com>
Tue, 27 Feb 2018 18:18:05 +0000 (13:18 -0500)
committerAndrew Bays <abays@redhat.com>
Tue, 27 Feb 2018 18:18:05 +0000 (13:18 -0500)
src/sysevent.c

index 94e99e9..6ef79f9 100644 (file)
@@ -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
  */