  
          free(ident_buf);
  }
-@@ -325,16 +434,19 @@ void server_process_syslog_message(
+@@ -330,16 +439,19 @@ void server_process_syslog_message(
          unsigned n = 0;
          int priority = LOG_USER | LOG_INFO;
          _cleanup_free_ char *identifier = NULL, *pid = NULL;

 
         assert(s);
         assert(priority >= 0);
@@ -141,41 +249,42 @@ void server_forward_syslog(Server *s, int priority, const char *identifier, cons
         if (LOG_PRI(priority) > s->max_level_syslog)
                 return;
 

 
         if (s->forward_to_kmsg || s->server->forward_to_kmsg)
diff --git a/src/journal/journald-syslog.c b/src/journal/journald-syslog.c
index 5153fd0..19baa89 100644
--- a/src/journal/journald-syslog.c
+++ b/src/journal/journald-syslog.c
@@ -19,6 +19,9 @@
 
 #include <stddef.h>
 #include <sys/epoll.h>
+#include <sys/socket.h>
+#include <netinet/in.h>
+#include <arpa/inet.h>
 #include <unistd.h>
 
 #include "sd-messages.h"
@@ -116,6 +119,53 @@ static void forward_syslog_iovec(Server *s, const struct iovec *iovec, unsigned
                 log_debug_errno(errno, "Failed to forward syslog message: %m");
 }
 
