[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-ID: <lhutswrj73u.fsf@oldenburg.str.redhat.com>
Date: Mon, 12 Jan 2026 14:25:25 +0100
From: Florian Weimer <fweimer@...hat.com>
To: Thomas Weißschuh <thomas.weissschuh@...utronix.de>
Cc: Arnd Bergmann <arnd@...db.de>, Jakub Kicinski <kuba@...nel.org>, Eric
Dumazet <edumazet@...gle.com>, Kuniyuki Iwashima <kuniyu@...gle.com>,
Paolo Abeni <pabeni@...hat.com>, Willem de Bruijn <willemb@...gle.com>,
Netdev <netdev@...r.kernel.org>, linux-kernel@...r.kernel.org,
linux-api@...r.kernel.org
Subject: Re: [PATCH net-next] net: uapi: Provide an UAPI definition of
'struct sockaddr'
* Thomas Weißschuh:
>> If you call the data member sa_data just like glibc, it will only fail
>> in C++, not C. GCC considers the two definitions sufficiently
>> equivalent (even though glibc adds a may_alias attribute to meet POSIX
>> requirements), and duplicate definitions are permitted in C.
>
> clang is not so lenient and will error out.
It seems it accepts it if you switch to C23 mode.
Thanks,
Florian
Powered by blists - more mailing lists