Skip to content

Commit

Permalink
Add "__EPOLL_PACKED" For ARM64
Browse files Browse the repository at this point in the history
  • Loading branch information
CuriousTommy committed Jun 21, 2024
1 parent 135d04d commit ad51599
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion darling/src/libsystem_kernel/emulation/linux/ext/sys/epoll.h
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand All @@ -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;

Expand Down

0 comments on commit ad51599

Please sign in to comment.