We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 91d7d50 commit 2a86389Copy full SHA for 2a86389
darling/src/libsystem_kernel/emulation/linux/ext/sys/epoll.h
@@ -28,6 +28,12 @@ enum EPOLL_EVENTS
28
#define EPOLL_CTL_DEL 2
29
#define EPOLL_CTL_MOD 3
30
31
+#if defined(__x86_64__) || defined(__i386__)
32
+#define __EPOLL_PACKED __attribute__ ((__packed__))
33
+#else
34
+#error "Missing __EPOLL_PACKED definition for arch"
35
+#endif
36
+
37
typedef union epoll_data
38
{
39
void *ptr;
@@ -40,7 +46,7 @@ struct epoll_event
40
46
41
47
uint32_t events;
42
48
epoll_data_t data;
43
-} __attribute__((packed));
49
+} __EPOLL_PACKED;
44
50
45
51
extern int epoll_create (int __size) __THROW;
52
0 commit comments