Skip to content

Commit b678d8b

Browse files
authored
tests: runtime: in_syslog: Add missing FLB_HAVE_UNIX_SOCKET clause (fluent#5647)
Signed-off-by: Hiroshi Hatake <[email protected]>
1 parent dc86e66 commit b678d8b

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

tests/runtime/in_syslog.c

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -203,6 +203,7 @@ static flb_sockfd_t connect_tcp(char *in_host, int in_port)
203203
return fd;
204204
}
205205

206+
#ifdef FLB_HAVE_UNIX_SOCKET
206207
static flb_sockfd_t connect_tcp_unix(char *path)
207208
{
208209
flb_sockfd_t fd;
@@ -263,6 +264,7 @@ static flb_sockfd_t init_udp_unix(char *path, struct sockaddr_un *sun)
263264
}
264265
return fd;
265266
}
267+
#endif
266268

267269
static int init_udp(char *in_host, int in_port, struct sockaddr_in *addr)
268270
{

0 commit comments

Comments
 (0)