mirror of
https://github.com/apache/nuttx.git
synced 2026-02-07 13:32:55 +08:00
sys/socket: use __attribute__((packed)) to avoid changes in
the size of struct sockaddr_storage due to struct alignment
This commit is contained in:
@@ -327,7 +327,7 @@ struct sockaddr_storage
|
||||
|
||||
/* Following fields are implementation-defined */
|
||||
|
||||
struct
|
||||
struct __attribute__((packed))
|
||||
{
|
||||
char ss_pad1[SS_PAD1SIZE]; /* 6-byte pad; this is to make implementation-defined
|
||||
* pad up to alignment field that follows explicit in
|
||||
|
||||
Reference in New Issue
Block a user