File tree Expand file tree Collapse file tree 5 files changed +4
-19
lines changed Expand file tree Collapse file tree 5 files changed +4
-19
lines changed Original file line number Diff line number Diff line change 1
1
#ifndef __wasilibc___struct_sockaddr_h
2
2
#define __wasilibc___struct_sockaddr_h
3
3
4
- #define __need_STDDEF_H_misc
5
- #include <stddef.h>
6
-
7
4
#include <__typedef_sa_family_t.h>
8
5
9
6
struct sockaddr {
Original file line number Diff line number Diff line change 1
1
#ifndef __wasilibc___struct_sockaddr_in_h
2
2
#define __wasilibc___struct_sockaddr_in_h
3
3
4
- #define __need_STDDEF_H_misc
5
- #include <stddef.h>
6
-
7
4
#include <__typedef_sa_family_t.h>
8
5
#include <__typedef_in_port_t.h>
9
6
#include <__struct_in_addr.h>
10
7
11
8
struct sockaddr_in {
12
- _Alignas( max_align_t ) sa_family_t sin_family ;
9
+ __attribute__(( aligned ( __BIGGEST_ALIGNMENT__ )) ) sa_family_t sin_family ;
13
10
in_port_t sin_port ;
14
11
struct in_addr sin_addr ;
15
12
};
Original file line number Diff line number Diff line change 1
1
#ifndef __wasilibc___struct_sockaddr_in6_h
2
2
#define __wasilibc___struct_sockaddr_in6_h
3
3
4
- #define __need_STDDEF_H_misc
5
- #include <stddef.h>
6
-
7
4
#include <__typedef_sa_family_t.h>
8
5
#include <__typedef_in_port_t.h>
9
6
#include <__struct_in6_addr.h>
10
7
11
8
struct sockaddr_in6 {
12
- _Alignas( max_align_t ) sa_family_t sin6_family ;
9
+ __attribute__(( aligned ( __BIGGEST_ALIGNMENT__ )) ) sa_family_t sin6_family ;
13
10
in_port_t sin6_port ;
14
11
unsigned sin6_flowinfo ;
15
12
struct in6_addr sin6_addr ;
Original file line number Diff line number Diff line change 1
1
#ifndef __wasilibc___struct_sockaddr_storage_h
2
2
#define __wasilibc___struct_sockaddr_storage_h
3
3
4
- #define __need_STDDEF_H_misc
5
- #include <stddef.h>
6
-
7
4
#include <__typedef_sa_family_t.h>
8
5
9
6
struct sockaddr_storage {
10
- _Alignas( max_align_t ) sa_family_t ss_family ;
7
+ __attribute__(( aligned ( __BIGGEST_ALIGNMENT__ )) ) sa_family_t ss_family ;
11
8
char __ss_data [32 ];
12
9
};
13
10
Original file line number Diff line number Diff line change 1
1
#ifndef __wasilibc___struct_sockaddr_un_h
2
2
#define __wasilibc___struct_sockaddr_un_h
3
3
4
- #define __need_STDDEF_H_misc
5
- #include <stddef.h>
6
-
7
4
#include <__typedef_sa_family_t.h>
8
5
9
6
struct sockaddr_un {
10
- _Alignas( max_align_t ) sa_family_t sun_family ;
7
+ __attribute__(( aligned ( __BIGGEST_ALIGNMENT__ )) ) sa_family_t sun_family ;
11
8
};
12
9
13
10
#endif
You can’t perform that action at this time.
0 commit comments