Skip to content

Commit

Permalink
flb_network: freebsd: Don't use Linux-like structs on FreeBSD
Browse files Browse the repository at this point in the history
Signed-off-by: Hiroshi Hatake <[email protected]>
  • Loading branch information
cosmo0920 authored and edsiper committed Nov 8, 2022
1 parent 58a4fc2 commit 450477c
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/flb_network.c
Original file line number Diff line number Diff line change
Expand Up @@ -1801,7 +1801,7 @@ static int net_address_unix_socket_peer_pid_raw(flb_sockfd_t fd,
int output_buffer_size,
size_t *output_data_size)
{
#ifndef FLB_SYSTEM_MACOS
#if !defined(FLB_SYSTEM_MACOS) && !defined(FLB_SYSTEM_FREEBSD)
unsigned int peer_credentials_size;
struct ucred peer_credentials;
#endif
Expand All @@ -1819,7 +1819,7 @@ static int net_address_unix_socket_peer_pid_raw(flb_sockfd_t fd,
return -1;
}

#ifndef FLB_SYSTEM_MACOS
#if !defined(FLB_SYSTEM_MACOS) && !defined(FLB_SYSTEM_FREEBSD)
peer_credentials_size = sizeof(struct ucred);

result = getsockopt(fd,
Expand Down

0 comments on commit 450477c

Please sign in to comment.