From: Paul Eggert Date: Mon, 14 Mar 2016 20:17:06 +0000 (-0700) Subject: select: try to port to 2016.1.150 compiler X-Git-Tag: v1.0~6793 X-Git-Url: https://gitweb.git.savannah.gnu.org/gitweb/?a=commitdiff_plain;h=7b4f58d83d6a7f52f458efcd5ec895225d8f0bf3;p=gnulib.git select: try to port to 2016.1.150 compiler Problem reported by Balázs Hajgató in: http://lists.gnu.org/archive/html/bug-gnulib/2016-03/msg00026.html * lib/sys_select.in.h (select): Use 'restrict' on arguments where POSIX specifies 'restrict'. --- diff --git a/ChangeLog b/ChangeLog index 317c50a9e2..d89c5f147a 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,11 @@ +2016-03-14 Paul Eggert + + select: try to port to 2016.1.150 compiler + Problem reported by Balázs Hajgató in: + http://lists.gnu.org/archive/html/bug-gnulib/2016-03/msg00026.html + * lib/sys_select.in.h (select): Use 'restrict' on arguments where + POSIX specifies 'restrict'. + 2016-03-13 Paul Eggert localename-tests: memory allocation fixes diff --git a/lib/sys_select.in.h b/lib/sys_select.in.h index a813f9cfc2..d6d3f9f148 100644 --- a/lib/sys_select.in.h +++ b/lib/sys_select.in.h @@ -289,12 +289,15 @@ _GL_WARN_ON_USE (pselect, "pselect is not portable - " # define select rpl_select # endif _GL_FUNCDECL_RPL (select, int, - (int, fd_set *, fd_set *, fd_set *, struct timeval *)); + (int, fd_set *restrict, fd_set *restrict, fd_set *restrict, + struct timeval *restrict)); _GL_CXXALIAS_RPL (select, int, - (int, fd_set *, fd_set *, fd_set *, struct timeval *)); + (int, fd_set *restrict, fd_set *restrict, fd_set *restrict, + struct timeval *restrict)); # else _GL_CXXALIAS_SYS (select, int, - (int, fd_set *, fd_set *, fd_set *, struct timeval *)); + (int, fd_set *restrict, fd_set *restrict, fd_set *restrict, + struct timeval *restrict)); # endif _GL_CXXALIASWARN (select); #elif @HAVE_WINSOCK2_H@