summaryrefslogtreecommitdiff
path: root/include/poll.h
diff options
context:
space:
mode:
Diffstat (limited to 'include/poll.h')
-rw-r--r--include/poll.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/include/poll.h b/include/poll.h
index 83801bd..4eb2713 100644
--- a/include/poll.h
+++ b/include/poll.h
@@ -11,7 +11,7 @@ __fortify_poll(struct pollfd *fds, nfds_t nfds, int timeout)
11{ 11{
12 __typeof__(sizeof 0) bos = __builtin_object_size(fds, 0); 12 __typeof__(sizeof 0) bos = __builtin_object_size(fds, 0);
13 13
14 if (bos != -1 && nfds > bos / sizeof(struct pollfd)) 14 if (nfds > bos / sizeof(struct pollfd))
15 __builtin_trap(); 15 __builtin_trap();
16 return poll(fds, nfds, timeout); 16 return poll(fds, nfds, timeout);
17} 17}