Skip to content

Commit 2bc230d

Browse files
committed
Give names to anonymous unions, to help bindgen.
1 parent f7a0d35 commit 2bc230d

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

  • libc-bottom-half/headers/public

libc-bottom-half/headers/public/wasi.h

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -297,7 +297,7 @@ typedef struct __wasi_event_t {
297297
__wasi_userdata_t userdata;
298298
__wasi_errno_t error;
299299
__wasi_eventtype_t type;
300-
union {
300+
union __wasi_event_u {
301301
struct {
302302
__wasi_filesize_t nbytes;
303303
__wasi_eventrwflags_t flags;
@@ -511,7 +511,7 @@ _Static_assert(sizeof(void *) != 8 ||
511511
typedef struct __wasi_subscription_t {
512512
__wasi_userdata_t userdata;
513513
__wasi_eventtype_t type;
514-
union {
514+
union __wasi_subscription_u {
515515
struct {
516516
__wasi_userdata_t identifier;
517517
__wasi_clockid_t clock_id;

0 commit comments

Comments
 (0)