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.

55 lines
1.7 KiB

  1. # --- SDE-COPYRIGHT-NOTE-BEGIN ---
  2. # This copyright note is auto-generated by ./scripts/Create-CopyPatch.
  3. #
  4. # Filename: package/.../uclibc/300-fix-ppoll.patch
  5. # Copyright (C) 2009 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. https://dev.openwrt.org/browser/trunk/toolchain/uClibc/patches-0.9.30.1/300-fix-ppoll.diff
  17. It will match kernel's sigset_t starting from 0.9.31.
  18. Please try attached patch.
  19. --
  20. vda
  21. --- ./libc/sysdeps/linux/common/ppoll.c.orig
  22. +++ ./libc/sysdeps/linux/common/ppoll.c
  23. @@ -17,6 +17,7 @@
  24. Software Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA
  25. 02111-1307 USA. */
  26. +#include <signal.h>
  27. #include <sys/syscall.h>
  28. #include <sys/poll.h>
  29. @@ -26,9 +27,9 @@
  30. # define __NR___libc_ppoll __NR_ppoll
  31. static __always_inline
  32. -_syscall4(int, __libc_ppoll, struct pollfd *, fds,
  33. +_syscall5(int, __libc_ppoll, struct pollfd *, fds,
  34. nfds_t, nfds, const struct timespec *, timeout,
  35. - const __sigset_t *, sigmask)
  36. + const __sigset_t *, sigmask, size_t, sigsetsize)
  37. int
  38. ppoll (struct pollfd *fds, nfds_t nfds, const struct timespec *timeout,
  39. @@ -43,7 +44,7 @@
  40. timeout = &tval;
  41. }
  42. - return __libc_ppoll(fds, nfds, timeout, sigmask);
  43. + return __libc_ppoll(fds, nfds, timeout, sigmask, _NSIG / 8);
  44. }
  45. libc_hidden_def(ppoll)