Skip to content

Commit 8f91815

Browse files
authored
os.notify: fix struct epoll_event alignment on ARM64/Linux (fix #25778) (#25779)
1 parent d260e34 commit 8f91815

File tree

1 file changed

+6
-0
lines changed

1 file changed

+6
-0
lines changed

vlib/os/notify/epoll.h

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,12 @@
11
// NOTE: tcc does not support yet __attribute__ ((__packed__)) properly,
22
// so the __EPOLL_PACKED macro that /usr/include/bits/epoll.h uses does not work :-| .
33
// However, it *does support* the older `#pragma pack(push, 1)`
4+
#if defined(__TINYC__) && defined(__V_amd64)
45
#pragma pack(push, 1)
6+
#endif
7+
58
#include <sys/epoll.h>
9+
10+
#if defined(__TINYC__) && defined(__V_amd64)
611
#pragma pack(pop)
12+
#endif

0 commit comments

Comments
 (0)