From 7dde94e3d2c88a50b03afb2137e1b3200f6a4a9d Mon Sep 17 00:00:00 2001 From: ruti <> Date: Tue, 24 Sep 2024 17:49:51 +0300 Subject: [PATCH] compile without sa_family_t --- extend.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/extend.c b/extend.c index 9010234..da8b135 100644 --- a/extend.c +++ b/extend.c @@ -24,7 +24,8 @@ #include "packets.h" #define KEY_SIZE sizeof(uint16_t) + \ - sizeof(sa_family_t) + sizeof(struct sockaddr_in6) + sizeof(((struct sockaddr){}).sa_family) + \ + sizeof(struct sockaddr_in6) int set_timeout(int fd, unsigned int s)