]> Savannah Git Hosting - gnulib.git/commitdiff
select: try to port to 2016.1.150 compiler
authorPaul Eggert <eggert@cs.ucla.edu>
Mon, 14 Mar 2016 20:17:06 +0000 (13:17 -0700)
committerPaul Eggert <eggert@cs.ucla.edu>
Mon, 14 Mar 2016 20:17:30 +0000 (13:17 -0700)
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'.

ChangeLog
lib/sys_select.in.h

index 317c50a9e22428f39440b6c611d7e849a09e5fb1..d89c5f147a022e4db8b995362e3cfc96bba71c6f 100644 (file)
--- a/ChangeLog
+++ b/ChangeLog
@@ -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
index a813f9cfc2b5f1246a6cfa6f63ce7b9f56ffb82d..d6d3f9f1481fad832fcd38041326f4c7ea628511 100644 (file)
@@ -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@