logo

oasis

Own branch of Oasis Linux (upstream: <https://git.sr.ht/~mcf/oasis/>) git clone https://anongit.hacktivis.me/git/oasis.git

0002-use-preferred-syntactic-location-for-epoll_event-pac.patch (781B)


  1. From 3c3a5a3208341615cefc3be9383e04cab32f9bfb Mon Sep 17 00:00:00 2001
  2. From: Michael Forney <mforney@mforney.org>
  3. Date: Tue, 26 Oct 2021 15:27:31 -0700
  4. Subject: [PATCH] use preferred syntactic location for epoll_event packed
  5. attribute
  6. ---
  7. include/sys/epoll.h | 10 +++++-----
  8. 1 file changed, 5 insertions(+), 5 deletions(-)
  9. diff --git a/include/sys/epoll.h b/include/sys/epoll.h
  10. index ac81a841..de4fe0e7 100644
  11. --- a/include/sys/epoll.h
  12. +++ b/include/sys/epoll.h
  13. @@ -45,14 +45,14 @@ typedef union epoll_data {
  14. uint64_t u64;
  15. } epoll_data_t;
  16. -struct epoll_event {
  17. - uint32_t events;
  18. - epoll_data_t data;
  19. -}
  20. +struct
  21. #ifdef __x86_64__
  22. __attribute__ ((__packed__))
  23. #endif
  24. -;
  25. +epoll_event {
  26. + uint32_t events;
  27. + epoll_data_t data;
  28. +};
  29. int epoll_create(int);
  30. --
  31. 2.32.0