提交 7f547152 编写于 作者: R Rich Felker

fix some struct padding to match LSB/glibc ABI where it may be helpful

上级 32aea208
......@@ -54,6 +54,7 @@ struct sigevent {
int sigev_notify;
void (*sigev_notify_function)(union sigval);
pthread_attr_t *sigev_notify_attributes;
char __pad[56-3*sizeof(long)];
};
#define SIGEV_SIGNAL 0
......
......@@ -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);
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册