summaryrefslogtreecommitdiff
path: root/include/poll.h
diff options
context:
space:
mode:
authorjvoisin2023-12-15 16:08:12 +0100
committerjvoisin2023-12-15 21:41:08 +0100
commit57a3e9c1c7507b5ce56122429cc3649009a4ecc7 (patch)
treef4fb73a124fd3de49e5cef291077003d797dc2c9 /include/poll.h
parent8342bc50a16a2158fef729db6cbfef874734e4dc (diff)
Remove superfluous includes
This should fix #32
Diffstat (limited to 'include/poll.h')
-rw-r--r--include/poll.h4
1 files changed, 2 insertions, 2 deletions
diff --git a/include/poll.h b/include/poll.h
index 8831f95..29e5c40 100644
--- a/include/poll.h
+++ b/include/poll.h
@@ -36,7 +36,7 @@ __diagnose_as_builtin(__builtin_poll, 1, 2, 3)
36#endif 36#endif
37_FORTIFY_FN(poll) int poll(struct pollfd * _FORTIFY_POS0 __f, nfds_t __n, int __s) 37_FORTIFY_FN(poll) int poll(struct pollfd * _FORTIFY_POS0 __f, nfds_t __n, int __s)
38{ 38{
39 size_t __b = __bos(__f, 0); 39 __fh_size_t __b = __bos(__f, 0);
40 40
41 if (__n > __b / sizeof(struct pollfd)) 41 if (__n > __b / sizeof(struct pollfd))
42 __builtin_trap(); 42 __builtin_trap();
@@ -51,7 +51,7 @@ __diagnose_as_builtin(__builtin_ppoll, 1, 2, 3, 4)
51_FORTIFY_FN(ppoll) int ppoll(struct pollfd * _FORTIFY_POS0 __f, nfds_t __n, 51_FORTIFY_FN(ppoll) int ppoll(struct pollfd * _FORTIFY_POS0 __f, nfds_t __n,
52 const struct timespec *__s, const sigset_t *__m) 52 const struct timespec *__s, const sigset_t *__m)
53{ 53{
54 size_t __b = __bos(__f, 0); 54 __fh_size_t __b = __bos(__f, 0);
55 55
56 if (__n > __b / sizeof(struct pollfd)) 56 if (__n > __b / sizeof(struct pollfd))
57 __builtin_trap(); 57 __builtin_trap();