fix some struct padding to match LSB/glibc ABI where it may be helpful
This commit is contained in:
parent
32aea2087a
commit
7f5471529c
2 changed files with 5 additions and 2 deletions
|
|
@ -54,6 +54,7 @@ struct sigevent {
|
||||||
int sigev_notify;
|
int sigev_notify;
|
||||||
void (*sigev_notify_function)(union sigval);
|
void (*sigev_notify_function)(union sigval);
|
||||||
pthread_attr_t *sigev_notify_attributes;
|
pthread_attr_t *sigev_notify_attributes;
|
||||||
|
char __pad[56-3*sizeof(long)];
|
||||||
};
|
};
|
||||||
|
|
||||||
#define SIGEV_SIGNAL 0
|
#define SIGEV_SIGNAL 0
|
||||||
|
|
|
||||||
|
|
@ -26,8 +26,10 @@ struct sockaddr
|
||||||
struct sockaddr_storage
|
struct sockaddr_storage
|
||||||
{
|
{
|
||||||
sa_family_t ss_family;
|
sa_family_t ss_family;
|
||||||
long long __ss_align;
|
union {
|
||||||
char __ss_padding[128 - sizeof(sa_family_t) - sizeof(long long)];
|
long long __align;
|
||||||
|
char __padding[126];
|
||||||
|
} __padding;
|
||||||
};
|
};
|
||||||
|
|
||||||
int socket (int, int, int);
|
int socket (int, int, int);
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue