From 1fcfd3566d2e8abaac89bde5abf55430fe9fb6f2 Mon Sep 17 00:00:00 2001 From: Thorsten Otto Date: Tue, 2 Jul 2024 15:42:13 +0200 Subject: [PATCH] Fix definition of sockaddr_storage It was supposed to be 128 bytes, but actually was 126 Unused currently in mintlib itself. --- include/bits/socket.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/include/bits/socket.h b/include/bits/socket.h index 782915d..ba6bc63 100644 --- a/include/bits/socket.h +++ b/include/bits/socket.h @@ -178,7 +178,7 @@ struct sockaddr exception of AF_UNIX). We reserve 128 bytes. */ #define __ss_aligntype unsigned long int #define _SS_SIZE 128 -#define _SS_PADSIZE (_SS_SIZE - (2 * sizeof (__ss_aligntype))) +#define _SS_PADSIZE (_SS_SIZE - __SOCKADDR_COMMON_SIZE - sizeof (__ss_aligntype)) struct sockaddr_storage {