summaryrefslogtreecommitdiffstats
path: root/security/ossec-hids-local/files/patch-src_client-agent_agentd.c
blob: ab6530725444a377e761539f136b3f1b8997804d (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
--- src/client-agent/agentd.c.orig	2020-02-14 19:46:22 UTC
+++ src/client-agent/agentd.c
@@ -15,6 +15,8 @@
 #include "os_dns/os_dns.h"
 #endif //WIN32
 
+struct imsgbuf server_ibuf;
+
 /* Start the agent daemon */
 void AgentdStart(const char *dir, int uid, int gid, const char *user, const char *group)
 {
@@ -39,7 +41,6 @@ void AgentdStart(const char *dir, int uid, int gid, co
     merror("starting imsg stuff");
     /* Prepare for os_dns */
     struct imsgbuf osdns_ibuf;
-    extern struct imsgbuf server_ibuf;
     //struct imsgbuf osdns_ibuf;
     int imsg_fds[2];
     merror("Creating socketpair()");