master hovercats/oakiss / pkg / musl / patch / 0002-use-preferred-syntactic-location-for-epoll_event-pac.patch
 1From 8029fd64b5b3f2c64b74fd65ec62b80bae773ae8 Mon Sep 17 00:00:00 2001
 2From: Michael Forney <mforney@mforney.org>
 3Date: Tue, 26 Oct 2021 15:27:31 -0700
 4Subject: [PATCH] use preferred syntactic location for epoll_event packed
 5 attribute
 6
 7---
 8 include/sys/epoll.h | 10 +++++-----
 9 1 file changed, 5 insertions(+), 5 deletions(-)
10
11diff --git a/include/sys/epoll.h b/include/sys/epoll.h
12index 5f975c4a..bdb43201 100644
13--- a/include/sys/epoll.h
14+++ b/include/sys/epoll.h
15@@ -46,14 +46,14 @@ typedef union epoll_data {
16 	uint64_t u64;
17 } epoll_data_t;
18 
19-struct epoll_event {
20-	uint32_t events;
21-	epoll_data_t data;
22-}
23+struct
24 #ifdef __x86_64__
25 __attribute__ ((__packed__))
26 #endif
27-;
28+epoll_event {
29+	uint32_t events;
30+	epoll_data_t data;
31+};
32 
33 struct epoll_params {
34 	uint32_t busy_poll_usecs;
35-- 
362.49.0
37