flb_network: freebsd: Don't use Linux-like structs on FreeBSD
@@ -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
@@ -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,
