sys_select: define sigset_t more portably
authorPaul Eggert <eggert@cs.ucla.edu>
Wed, 6 Jul 2011 07:42:24 +0000 (00:42 -0700)
committerPaul Eggert <eggert@cs.ucla.edu>
Wed, 6 Jul 2011 07:44:21 +0000 (00:44 -0700)
commit8db49630deab35ffbce5c113aed093359a75091d
treec03e973a9aef0faf987bc4563cf7db90808f4bff
parent350d202a28a8744d20a693930a30d012e9e3cdaa
sys_select: define sigset_t more portably

* lib/sys_select.in.h: Always include <sys/types.h>, since
we now need sigset_t and mingw defines it there.
Include <signal.h> before split inclusion guard, to avoid
mishaps on Solaris, whose <signal.h> eventually includes us.
* m4/signal_h.m4 (gl_SIGNAL_H): Require gl_CHECK_TYPE_SIGSET_T.
(gl_CHECK_TYPE_SIGSET_T): New macro, most of the contents of
which come from ...
* m4/signalblocking.m4 (gl_SIGNALBLOCKING): Require
gl_CHECK_TYPE_SIGSET_T.
(gl_PREREQ_SIGPROCMASK): Now a no-op, since gl_CHECK_TYPE_SIGSET_T
does the real work.
* modules/sys_select (Depends-on): Add 'signal'.
ChangeLog
lib/sys_select.in.h
m4/signal_h.m4
m4/signalblocking.m4
modules/sys_select