]> Savannah Git Hosting - gnulib.git/commit
sys_select: fix FD_ZERO problem on Solaris 10
authorPaul Eggert <eggert@cs.ucla.edu>
Tue, 5 Aug 2014 20:19:57 +0000 (13:19 -0700)
committerPaul Eggert <eggert@cs.ucla.edu>
Tue, 5 Aug 2014 20:22:11 +0000 (13:22 -0700)
commite2fb7afb4669e3b3f3c7633e6ac9534f0df15441
tree95ab73890b33ca6e40949385265bace09c8471a1
parentce49a606af81117616c8132a53e826ea457b006b
sys_select: fix FD_ZERO problem on Solaris 10

* lib/sys_select.in.h: Fix Solaris 10 bug where "#include
<sys/time.h>" followed by "#include <sys/select.h>" caused FD_ZERO
to expand to an expression that invoked memset without necessarily
including <string.h>.  The problem was that the first include
defined _SYS_TIME_H, causing the second include to short-circuit.
Fix a similar problem with <sys/types.h> followed by <sys/select.h>.
Also, fix what appears to be a cut-and-paste typo, by replacing
_GL_SYS_SELECT_H_REDIRECT_FROM_SYS_TIME_H with
_GL_SYS_SELECT_H_REDIRECT_FROM_SYS_TYPES_H.
ChangeLog
lib/sys_select.in.h