]> git.ipfire.org Git - thirdparty/glibc.git/commitdiff
linux: Include <sysdep-cancel.h> for epoll_wait
authorLuke Shumaker <lukeshu@lukeshu.com>
Wed, 15 Nov 2017 16:36:25 +0000 (14:36 -0200)
committerAdhemerval Zanella <adhemerval.zanella@linaro.org>
Wed, 15 Nov 2017 16:40:17 +0000 (14:40 -0200)
The epoll_wait wrapper uses the raw syscall if __NR_epoll_wait is defined,
and falls back to calling epoll_pwait(..., NULL) if it isn't defined.
However, it didn't include the appropriate headers for __NR_epoll_wait to
be defined, so it was *always* falling back to calling epoll_pwait!

This mistake was introduced in b62c3815912bc679a966134affdedd3f35ae8621,
when epoll_wait changed from being in syscalls.list to always having a C
wrapper.

Reviewed-by: Adhemerval Zanella <adhemerval.zanella@linaro.org>
ChangeLog
sysdeps/unix/sysv/linux/epoll_wait.c

index 420217e7d5a88c2c036fb32686e90fe243303761..c26eac8d32caade7d70c575ed124a2ac8fb87538 100644 (file)
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,7 @@
+2017-11-15  Luke Shumaker  <lukeshu@parabola.nu>
+
+       * sysdeps/unix/sysv/linux/epoll_wait.c: Include <sysdep-cancel.h>.
+
 2017-11-15  Mike FABIAN  <mfabian@redhat.com>
 
        * localedata/locales/ka_GE (LC_MESSAGES): Add “X” back to yesexpr,
index eb6e6d3ace803421fd0677b498ea13af5474f8e3..b324ff832a5972c8f97d09908c6e21980f4264ca 100644 (file)
@@ -21,6 +21,8 @@
 #include <sys/types.h>
 #include <sys/epoll.h>
 
+#include <sysdep-cancel.h>
+
 int
 epoll_wait (int epfd, struct epoll_event *events, int maxevents, int timeout)
 {