From f46714c2f9eb13c12c8218f1b7c045182041fdc9 Mon Sep 17 00:00:00 2001 From: Daniel Kolesa Date: Wed, 26 Oct 2022 00:30:00 +0200 Subject: add initial clang support Co-Authored-By: jvoisin --- 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 da0ffcc..4f5e69c 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) { __typeof__(sizeof 0) __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) && (!defined(_REDIR_TIME64) || !_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) { __typeof__(sizeof 0) __b = __bos(__f, 0); -- cgit v1.3