mirror of
https://github.com/apache/nuttx.git
synced 2026-08-02 04:38:59 +00: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:
parent
b271507c9f
commit
855336bf42
1 changed files with 1 additions and 1 deletions
|
|
@ -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
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue