OpenSDE Packages Database (without history before r20070)
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

59 lines
2.5 KiB

  1. # --- SDE-COPYRIGHT-NOTE-BEGIN ---
  2. # This copyright note is auto-generated by ./scripts/Create-CopyPatch.
  3. #
  4. # Filename: package/.../uclibc/uClibc-0.9.32.1-Fix-__libc_epoll_pwait-compile-failure-on-x86.patch
  5. # Copyright (C) 2012 The OpenSDE Project
  6. #
  7. # More information can be found in the files COPYING and README.
  8. #
  9. # This patch file is dual-licensed. It is available under the license the
  10. # patched project is licensed under, as long as it is an OpenSource license
  11. # as defined at http://www.opensource.org/ (e.g. BSD, X11) or under the terms
  12. # of the GNU General Public License as published by the Free Software
  13. # Foundation; either version 2 of the License, or (at your option) any later
  14. # version.
  15. # --- SDE-COPYRIGHT-NOTE-END ---
  16. From 8245f3b4638fdff2011c2657af1bb211def704bc Mon Sep 17 00:00:00 2001
  17. From: Phil Blundell <pb@pbcl.net>
  18. Date: Sat, 11 Jun 2011 01:10:46 -0400
  19. Subject: [PATCH] Fix __libc_epoll_pwait compile failure on x86
  20. This prevents "memory input 7 is not directly addressable" errors.
  21. | libc/sysdeps/linux/common/epoll.c: In function '__libc_epoll_pwait':
  22. | libc/sysdeps/linux/common/epoll.c:71:80: error: memory input 7 is not directly addressable
  23. | libc/sysdeps/linux/common/epoll.c:75:86: error: memory input 7 is not directly addressable
  24. | make: *** [libc/sysdeps/linux/common/epoll.o] Error 1
  25. | make: *** Waiting for unfinished jobs....
  26. Signed-off-by: Phil Blundell <pb@pbcl.net>
  27. Signed-off-by: Jason Woodward <jason.woodward@timesys.com>
  28. Signed-off-by: Khem Raj <raj.khem@gmail.com>
  29. ---
  30. libc/sysdeps/linux/common/epoll.c | 5 +++--
  31. 1 files changed, 3 insertions(+), 2 deletions(-)
  32. diff --git a/libc/sysdeps/linux/common/epoll.c b/libc/sysdeps/linux/common/epoll.c
  33. index 85b0cfd..ab3e73b 100644
  34. --- a/libc/sysdeps/linux/common/epoll.c
  35. +++ b/libc/sysdeps/linux/common/epoll.c
  36. @@ -67,12 +67,13 @@ extern __typeof(epoll_pwait) __libc_epoll_pwait;
  37. int __libc_epoll_pwait(int epfd, struct epoll_event *events, int maxevents,
  38. int timeout, const sigset_t *set)
  39. {
  40. + int nsig = _NSIG / 8;
  41. if (SINGLE_THREAD_P)
  42. - return INLINE_SYSCALL(epoll_pwait, 6, epfd, events, maxevents, timeout, set, _NSIG / 8);
  43. + return INLINE_SYSCALL(epoll_pwait, 6, epfd, events, maxevents, timeout, set, nsig);
  44. # ifdef __UCLIBC_HAS_THREADS_NATIVE__
  45. else {
  46. int oldtype = LIBC_CANCEL_ASYNC ();
  47. - int result = INLINE_SYSCALL(epoll_pwait, 6, epfd, events, maxevents, timeout, set, _NSIG / 8);
  48. + int result = INLINE_SYSCALL(epoll_pwait, 6, epfd, events, maxevents, timeout, set, nsig);
  49. LIBC_CANCEL_RESET (oldtype);
  50. return result;
  51. }
  52. --
  53. 1.7.5.4