changeset 18265:4a112f0aa5a8

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'.
author Paul Eggert <eggert@cs.ucla.edu>
date Mon, 14 Mar 2016 13:17:06 -0700
parents c8568e6342e0
children f1c63ee07717
files ChangeLog lib/sys_select.in.h
diffstat 2 files changed, 14 insertions(+), 3 deletions(-) [+]
line wrap: on
line diff
--- a/ChangeLog	Sun Mar 13 22:44:58 2016 -0700
+++ b/ChangeLog	Mon Mar 14 13:17:06 2016 -0700
@@ -1,3 +1,11 @@
+2016-03-14  Paul Eggert  <eggert@cs.ucla.edu>
+
+	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  <eggert@cs.ucla.edu>
 
 	localename-tests: memory allocation fixes
--- a/lib/sys_select.in.h	Sun Mar 13 22:44:58 2016 -0700
+++ b/lib/sys_select.in.h	Mon Mar 14 13:17:06 2016 -0700
@@ -289,12 +289,15 @@
 #   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@