From: Roy Marples Date: Sat, 20 Dec 2014 12:15:07 +0000 (+0000) Subject: Use __restrict rather than restrict. X-Git-Tag: v6.7.0~35 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=8f9f46fc980f190e4631da896fcc6168b7f77d1b;p=thirdparty%2Fdhcpcd.git Use __restrict rather than restrict. Thanks to Will Miles. --- diff --git a/compat/pollts.c b/compat/pollts.c index 232a87ea..905dad6e 100644 --- a/compat/pollts.c +++ b/compat/pollts.c @@ -39,8 +39,8 @@ #warning "Only operating system support for pollts(2) can correct this." int -pollts(struct pollfd *restrict fds, nfds_t nfds, - const struct timespec *restrict ts, const sigset_t *restrict sigmask) +pollts(struct pollfd *__restrict fds, nfds_t nfds, + const struct timespec *__restrict ts, const sigset_t *__restrict sigmask) { int r, timeout; sigset_t oldset; diff --git a/compat/pollts.h b/compat/pollts.h index 60ec3a35..8fc63d0f 100644 --- a/compat/pollts.h +++ b/compat/pollts.h @@ -33,7 +33,7 @@ #include int -pollts(struct pollfd *restrict, nfds_t, const struct timespec *restrict, - const sigset_t *restrict); +pollts(struct pollfd *__restrict, nfds_t, const struct timespec *__restrict, + const sigset_t *__restrict); #endif diff --git a/compat/pselect.c b/compat/pselect.c index 8c6d8ed1..78911fa0 100644 --- a/compat/pselect.c +++ b/compat/pselect.c @@ -36,8 +36,8 @@ #include "pollts.h" int -pollts(struct pollfd *restrict fds, nfds_t nfds, - const struct timespec *restrict ts, const sigset_t *restrict sigmask) +pollts(struct pollfd *__restrict fds, nfds_t nfds, + const struct timespec *__restrict ts, const sigset_t *__restrict sigmask) { fd_set read_fds; nfds_t n;