From 87900b1b4366fd612b4f5655d6615875636fb1e4 Mon Sep 17 00:00:00 2001 From: WizzardSK <42868978+WizzardSK@users.noreply.github.com> Date: Fri, 13 Nov 2026 12:12:37 +0100 Subject: [PATCH] netinet/in.h: s6_addr first in struct in6_addr's union A braced initializer without designators fills a union's first member, so the common 16-byte form of an IPv6 address did not compile here (too many initializers for 'uint16_t [8]'). FreeBSD, glibc and musl put the 16 bytes first. Size, layout and member names are unchanged. --- nx/external/bsd/include/netinet/in.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/nx/external/bsd/include/netinet/in.h b/nx/external/bsd/include/netinet/in.h index d9209cd276..3e10b7d1ed 100644 --- a/nx/external/bsd/include/netinet/in.h +++ b/nx/external/bsd/include/netinet/in.h @@ -670,9 +670,9 @@ struct group_source_req { struct in6_addr { union { + unsigned char s6_addr[16]; /* IPv6 address */ uint16_t __u6_addr16[8]; uint32_t __u6_addr32[4]; - unsigned char s6_addr[16]; /* IPv6 address */ }; };