linux: add CONFIG_POWER_SUPPLY_DEBUG symbol
[openwrt/staging/chunkeey.git] / toolchain / uClibc / patches-0.9.32 / 150-x86_epoll_fix.patch
1 --- a/libc/sysdeps/linux/common/epoll.c
2 +++ b/libc/sysdeps/linux/common/epoll.c
3 @@ -67,12 +67,13 @@ extern __typeof(epoll_pwait) __libc_epol
4 int __libc_epoll_pwait(int epfd, struct epoll_event *events, int maxevents,
5 int timeout, const sigset_t *set)
6 {
7 + int nsig = _NSIG / 8;
8 if (SINGLE_THREAD_P)
9 - return INLINE_SYSCALL(epoll_pwait, 6, epfd, events, maxevents, timeout, set, _NSIG / 8);
10 + return INLINE_SYSCALL(epoll_pwait, 6, epfd, events, maxevents, timeout, set, nsig);
11 # ifdef __UCLIBC_HAS_THREADS_NATIVE__
12 else {
13 int oldtype = LIBC_CANCEL_ASYNC ();
14 - int result = INLINE_SYSCALL(epoll_pwait, 6, epfd, events, maxevents, timeout, set, _NSIG / 8);
15 + int result = INLINE_SYSCALL(epoll_pwait, 6, epfd, events, maxevents, timeout, set, nsig);
16 LIBC_CANCEL_RESET (oldtype);
17 return result;
18 }