diff options
author | Bruno Haible <bruno@clisp.org> | 2011-09-24 12:37:54 +0200 |
---|---|---|
committer | Bruno Haible <bruno@clisp.org> | 2011-09-24 12:37:54 +0200 |
commit | 14cbee7bc09e5dee154aeb009510c22c02ad69b7 (patch) | |
tree | 66eeb5a1ad49d8f08b9bbee79249cffb735eff18 /lib/sigprocmask.c | |
parent | 147b1c2c14ba0cfee9ab0da514b8929652ee5bd1 (diff) | |
download | gnulib-14cbee7bc09e5dee154aeb009510c22c02ad69b7.tar.gz |
sigprocmask: Make code safer.
* lib/sigprocmask.c: Move '#include "msvc-inval.h"' before the code
section that changes macro definitions for this compilation unit.
Diffstat (limited to 'lib/sigprocmask.c')
-rw-r--r-- | lib/sigprocmask.c | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/lib/sigprocmask.c b/lib/sigprocmask.c index a9aff47615..6ccac5a834 100644 --- a/lib/sigprocmask.c +++ b/lib/sigprocmask.c @@ -24,6 +24,10 @@ #include <stdint.h> #include <stdlib.h> +#if HAVE_MSVC_INVALID_PARAMETER_HANDLER +# include "msvc-inval.h" +#endif + /* We assume that a platform without POSIX signal blocking functions also does not have the POSIX sigaction() function, only the signal() function. We also assume signal() has SysV semantics, @@ -59,8 +63,6 @@ typedef void (*handler_t) (int); #if HAVE_MSVC_INVALID_PARAMETER_HANDLER -# include "msvc-inval.h" - static inline handler_t signal_nothrow (int sig, handler_t handler) { |