summaryrefslogtreecommitdiff
path: root/include/sys
diff options
context:
space:
mode:
authorRich Felker <dalias@aerifal.cx>2011-06-16 17:11:35 -0400
committerRich Felker <dalias@aerifal.cx>2011-06-16 17:11:35 -0400
commit7f5471529c2f85ce528292ea5d4a146597d47588 (patch)
tree303c6c3747fd6f805f8981607f0d3ca0b3d42b07 /include/sys
parent32aea2087a699bb4bd9c34347b6ef8d164ee0d0b (diff)
downloadmusl-7f5471529c2f85ce528292ea5d4a146597d47588.tar.gz
musl-7f5471529c2f85ce528292ea5d4a146597d47588.tar.bz2
musl-7f5471529c2f85ce528292ea5d4a146597d47588.tar.xz
musl-7f5471529c2f85ce528292ea5d4a146597d47588.zip
fix some struct padding to match LSB/glibc ABI where it may be helpful
Diffstat (limited to 'include/sys')
-rw-r--r--include/sys/socket.h6
1 files changed, 4 insertions, 2 deletions
diff --git a/include/sys/socket.h b/include/sys/socket.h
index 4005eb6d..71d9b884 100644
--- a/include/sys/socket.h
+++ b/include/sys/socket.h
@@ -26,8 +26,10 @@ struct sockaddr
struct sockaddr_storage
{
sa_family_t ss_family;
- long long __ss_align;
- char __ss_padding[128 - sizeof(sa_family_t) - sizeof(long long)];
+ union {
+ long long __align;
+ char __padding[126];
+ } __padding;
};
int socket (int, int, int);