test_template: include syslog-ng.h first

This silences deprecated glib symbols warnings.

Signed-off-by: Balazs Scheidler <bazsi@balabit.hu>
afsocket: Fix compilation with systemd support enabled

self->super.socket_options->sock_type is replaced with
self->super.transport_mapper->sock_type, follow up on this in the
systemd-enabled codepath too.

Signed-off-by: Gergely Nagy <algernon@balabit.hu>
system-source: Make /proc/kmsg optional

In certain environments (vserver and OpenVZ come to mind), /proc/kmsg is
not readable, not even for root. On these systems, emit a warning, and
skip it, instead of aborting the startup.

Reported-by: Tamas Pal <folti@balabit.hu>
Signed-off-by: Gergely Nagy <algernon@balabit.hu>