From 28d61f4202a73fa39d07774c66e1404858adfee9 Mon Sep 17 00:00:00 2001 From: jvoisin Date: Thu, 22 Jun 2023 18:33:53 +0200 Subject: Add a test for `poll` --- include/poll.h | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'include') diff --git a/include/poll.h b/include/poll.h index a50a0d6..0500ab4 100644 --- a/include/poll.h +++ b/include/poll.h @@ -32,7 +32,7 @@ extern "C" { _FORTIFY_FN(poll) int poll(struct pollfd *__f, nfds_t __n, int __s) { - __typeof__(sizeof 0) __b = __bos(__f, 0); + size_t __b = __bos(__f, 0); if (__n > __b / sizeof(struct pollfd)) __builtin_trap(); @@ -44,7 +44,7 @@ _FORTIFY_FN(poll) int poll(struct pollfd *__f, nfds_t __n, int __s) _FORTIFY_FN(ppoll) int ppoll(struct pollfd *__f, nfds_t __n, const struct timespec *__s, const sigset_t *__m) { - __typeof__(sizeof 0) __b = __bos(__f, 0); + size_t __b = __bos(__f, 0); if (__n > __b / sizeof(struct pollfd)) __builtin_trap(); -- cgit v1.3