fix epoll structure alignment on non-x86_64 archs
[musl] / include / sys / epoll.h
index 0ff3d49..1f0312e 100644 (file)
@@ -28,6 +28,7 @@ enum EPOLL_EVENTS { __EPOLL_DUMMY };
 #define EPOLLERR 0x008
 #define EPOLLHUP 0x010
 #define EPOLLRDHUP 0x2000
+#define EPOLLWAKEUP (1U<<29)
 #define EPOLLONESHOT (1U<<30)
 #define EPOLLET (1U<<31)
 
@@ -45,7 +46,11 @@ typedef union epoll_data {
 struct epoll_event {
        uint32_t events;
        epoll_data_t data;
-} __attribute__ ((__packed__));
+}
+#ifdef __x86_64__
+__attribute__ ((__packed__))
+#endif
+;
 
 
 int epoll_create(int);