From fe149628eaae9748be08815d726cc56e8e492c73 Mon Sep 17 00:00:00 2001 From: Daniel Kolesa Date: Wed, 26 Oct 2022 00:30:00 +0200 Subject: add initial clang support --- include/poll.h | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) (limited to 'include/poll.h') diff --git a/include/poll.h b/include/poll.h index e89b4e7..8e8de6c 100644 --- a/include/poll.h +++ b/include/poll.h @@ -1,5 +1,6 @@ /* * Copyright (C) 2015-2016 Dimitris Papastamos + * Copyright (C) 2022 q66 * * Permission to use, copy, modify, and/or distribute this software for any * purpose with or without fee is hereby granted. @@ -30,7 +31,7 @@ extern "C" { #undef poll -_FORTIFY_FN(poll) int poll(struct pollfd *__f, nfds_t __n, int __s) +_FORTIFY_FN(poll) int poll(struct pollfd * _FORTIFY_POS0 __f, nfds_t __n, int __s) { size_t __b = __bos(__f, 0); @@ -41,8 +42,8 @@ _FORTIFY_FN(poll) int poll(struct pollfd *__f, nfds_t __n, int __s) #if defined(_GNU_SOURCE) && !_REDIR_TIME64 #undef ppoll -_FORTIFY_FN(ppoll) int ppoll(struct pollfd *__f, nfds_t __n, const struct timespec *__s, - const sigset_t *__m) +_FORTIFY_FN(ppoll) int ppoll(struct pollfd * _FORTIFY_POS0 __f, nfds_t __n, + const struct timespec *__s, const sigset_t *__m) { size_t __b = __bos(__f, 0); -- cgit v1.3