fix some struct padding to match LSB/glibc ABI where it may be helpful
authorRich Felker <dalias@aerifal.cx>
Thu, 16 Jun 2011 21:11:35 +0000 (17:11 -0400)
committerRich Felker <dalias@aerifal.cx>
Thu, 16 Jun 2011 21:11:35 +0000 (17:11 -0400)
include/signal.h
include/sys/socket.h

index 1b5890897803958c6f6cc6b8daa224c0c0e0a691..6625981f11d7646bdc80dbe6ddd4bb46e17c098c 100644 (file)
@@ -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
index 4005eb6d3413e07a5be7d4c59ddb95c6290367a7..71d9b88430bb95587aee7ea697835f4178d76b5b 100644 (file)
@@ -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);