Skip to content

Commit 1fcfd35

Browse files
committed
Fix definition of sockaddr_storage
It was supposed to be 128 bytes, but actually was 126 Unused currently in mintlib itself.
1 parent 95101ce commit 1fcfd35

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

include/bits/socket.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -178,7 +178,7 @@ struct sockaddr
178178
exception of AF_UNIX). We reserve 128 bytes. */
179179
#define __ss_aligntype unsigned long int
180180
#define _SS_SIZE 128
181-
#define _SS_PADSIZE (_SS_SIZE - (2 * sizeof (__ss_aligntype)))
181+
#define _SS_PADSIZE (_SS_SIZE - __SOCKADDR_COMMON_SIZE - sizeof (__ss_aligntype))
182182

183183
struct sockaddr_storage
184184
{

0 commit comments

Comments
 (0)