about summary refs log tree commit diff
path: root/sysdeps/unix/bsd/bits/sockaddr.h
diff options
context:
space:
mode:
Diffstat (limited to 'sysdeps/unix/bsd/bits/sockaddr.h')
-rw-r--r--sysdeps/unix/bsd/bits/sockaddr.h9
1 files changed, 9 insertions, 0 deletions
diff --git a/sysdeps/unix/bsd/bits/sockaddr.h b/sysdeps/unix/bsd/bits/sockaddr.h
index e2719bbc9c..bb7ecffd1b 100644
--- a/sysdeps/unix/bsd/bits/sockaddr.h
+++ b/sysdeps/unix/bsd/bits/sockaddr.h
@@ -42,4 +42,13 @@ typedef unsigned char sa_family_t;
 /* Size of struct sockaddr_storage.  */
 #define _SS_SIZE 128
 
+/* Desired alignment for struct sockaddr_storage.  */
+#include <bits/types.h>
+#include <bits/wordsize.h>
+#if __WORDSIZE == 64
+# define __ss_aligntype __uint64_t
+#else
+# define __ss_aligntype __uint32_t
+#endif
+
 #endif	/* bits/sockaddr.h */