-
Notifications
You must be signed in to change notification settings - Fork 203
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Use __BIGGEST_ALIGNMENT__ instead of max_align_t (#375)
Also, remove no longer necessary __need_STDDEF_H_misc stuff. References: #335 WebAssembly/wasi-sdk#111 https://github.com/llvm/llvm-project/blob/2e999b7dd1934a44d38c3a753460f1e5a217e9a5/clang/lib/Headers/stddef.h#L106-L113
- Loading branch information
Showing
5 changed files
with
4 additions
and
19 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,13 +1,10 @@ | ||
#ifndef __wasilibc___struct_sockaddr_un_h | ||
#define __wasilibc___struct_sockaddr_un_h | ||
|
||
#define __need_STDDEF_H_misc | ||
#include <stddef.h> | ||
|
||
#include <__typedef_sa_family_t.h> | ||
|
||
struct sockaddr_un { | ||
_Alignas(max_align_t) sa_family_t sun_family; | ||
__attribute__((aligned(__BIGGEST_ALIGNMENT__))) sa_family_t sun_family; | ||
}; | ||
|
||
#endif |