From 14cbee7bc09e5dee154aeb009510c22c02ad69b7 Mon Sep 17 00:00:00 2001 From: Bruno Haible Date: Sat, 24 Sep 2011 12:37:54 +0200 Subject: [PATCH] sigprocmask: Make code safer. * lib/sigprocmask.c: Move '#include "msvc-inval.h"' before the code section that changes macro definitions for this compilation unit. --- ChangeLog | 6 ++++++ lib/sigprocmask.c | 6 ++++-- 2 files changed, 10 insertions(+), 2 deletions(-) diff --git a/ChangeLog b/ChangeLog index b33fd7bd6..dec588cd4 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,9 @@ +2011-09-24 Bruno Haible + + sigprocmask: Make code safer. + * lib/sigprocmask.c: Move '#include "msvc-inval.h"' before the code + section that changes macro definitions for this compilation unit. + 2011-09-23 Paul Eggert dup2: clarify by coalescing Windows-specific material diff --git a/lib/sigprocmask.c b/lib/sigprocmask.c index a9aff4761..6ccac5a83 100644 --- a/lib/sigprocmask.c +++ b/lib/sigprocmask.c @@ -24,6 +24,10 @@ #include #include +#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) { -- 2.11.0