From cd2293671289fc63a53ead46d5cc0223f64464c1 Mon Sep 17 00:00:00 2001 From: Fabrizio Bertocci Date: Thu, 25 Mar 2021 19:48:03 -0400 Subject: [PATCH] Added definition of sockaddr_un_bsd --- libc/sock/internal.h | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/libc/sock/internal.h b/libc/sock/internal.h index 1a9c38838..e4e435a60 100644 --- a/libc/sock/internal.h +++ b/libc/sock/internal.h @@ -46,6 +46,12 @@ struct msghdr_bsd { uint32_t msg_flags; /* « different type */ }; +struct sockaddr_un_bsd { + uint8_t sun_len; /* sockaddr len including NUL on freebsd but excluding it on openbsd/xnu */ + uint8_t sun_family; + char sun_path[14]; +}; + struct SockFd { int family; int type;