0002-syscall-Fix-ia64-definitions-to-match-exactly-the-ke.patch 1.0 KB

123456789101112131415161718192021222324252627282930313233
  1. From e458ea6bf9526543c206fa4142ed5ef1c77530a6 Mon Sep 17 00:00:00 2001
  2. From: Guillem Jover <guillem@hadrons.org>
  3. Date: Sun, 12 Apr 2020 03:44:43 +0200
  4. Subject: [PATCH libaio 02/11] syscall: Fix ia64 definitions to match exactly
  5. the kernel
  6. Otherwise we get preprocessor warnings due to the redefinitions.
  7. Signed-off-by: Guillem Jover <guillem@hadrons.org>
  8. ---
  9. src/syscall-ia64.h | 11 ++++++-----
  10. 1 file changed, 6 insertions(+), 5 deletions(-)
  11. diff --git a/src/syscall-ia64.h b/src/syscall-ia64.h
  12. index a21e93b..765c423 100644
  13. --- a/src/syscall-ia64.h
  14. +++ b/src/syscall-ia64.h
  15. @@ -1,5 +1,6 @@
  16. -#define __NR_io_setup 1238
  17. -#define __NR_io_destroy 1239
  18. -#define __NR_io_getevents 1240
  19. -#define __NR_io_submit 1241
  20. -#define __NR_io_cancel 1242
  21. +#define __NR_Linux 1024
  22. +#define __NR_io_setup (__NR_Linux + 214)
  23. +#define __NR_io_destroy (__NR_Linux + 215)
  24. +#define __NR_io_getevents (__NR_Linux + 216)
  25. +#define __NR_io_submit (__NR_Linux + 217)
  26. +#define __NR_io_cancel (__NR_Linux + 218)
  27. --
  28. 2.26.0.292.g33ef6b2f38