From ad5159901f20400c1b42c649400e09bf01822ce7 Mon Sep 17 00:00:00 2001 From: "Thomas A." Date: Thu, 20 Jun 2024 19:33:54 -0700 Subject: [PATCH] Add "__EPOLL_PACKED" For ARM64 --- darling/src/libsystem_kernel/emulation/linux/ext/sys/epoll.h | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/darling/src/libsystem_kernel/emulation/linux/ext/sys/epoll.h b/darling/src/libsystem_kernel/emulation/linux/ext/sys/epoll.h index 6716c62..f31f092 100644 --- a/darling/src/libsystem_kernel/emulation/linux/ext/sys/epoll.h +++ b/darling/src/libsystem_kernel/emulation/linux/ext/sys/epoll.h @@ -30,6 +30,8 @@ enum EPOLL_EVENTS #if defined(__x86_64__) || defined(__i386__) #define __EPOLL_PACKED __attribute__ ((__packed__)) +#elif defined(__arm64__) +#define __EPOLL_PACKED #else #error "Missing __EPOLL_PACKED definition for arch" #endif @@ -46,7 +48,7 @@ struct epoll_event { uint32_t events; epoll_data_t data; -} __attribute__((packed)); +} __EPOLL_PACKED; extern int epoll_create (int __size) __THROW;