compile without sa_family_t

This commit is contained in:
ruti 2024-09-24 17:49:51 +03:00
parent e406476610
commit 7dde94e3d2

View File

@ -24,7 +24,8 @@
#include "packets.h" #include "packets.h"
#define KEY_SIZE sizeof(uint16_t) + \ #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) int set_timeout(int fd, unsigned int s)