summaryrefslogtreecommitdiff
path: root/pkg/musl/patch/0002-use-preferred-syntactic-location-for-epoll_event-pac.patch
blob: c3e9891a33502be23b87514f63ef1e105d832743 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
From 3c3a5a3208341615cefc3be9383e04cab32f9bfb Mon Sep 17 00:00:00 2001
From: Michael Forney <mforney@mforney.org>
Date: Tue, 26 Oct 2021 15:27:31 -0700
Subject: [PATCH] use preferred syntactic location for epoll_event packed
 attribute

---
 include/sys/epoll.h | 10 +++++-----
 1 file changed, 5 insertions(+), 5 deletions(-)

diff --git a/include/sys/epoll.h b/include/sys/epoll.h
index ac81a841..de4fe0e7 100644
--- a/include/sys/epoll.h
+++ b/include/sys/epoll.h
@@ -45,14 +45,14 @@ typedef union epoll_data {
 	uint64_t u64;
 } epoll_data_t;
 
-struct epoll_event {
-	uint32_t events;
-	epoll_data_t data;
-}
+struct
 #ifdef __x86_64__
 __attribute__ ((__packed__))
 #endif
-;
+epoll_event {
+	uint32_t events;
+	epoll_data_t data;
+};
 
 
 int epoll_create(int);
-- 
2.32.0