From b4f17a8fccf9099a2603634a68ce93e30208b9ec Mon Sep 17 00:00:00 2001 From: Bruno Haible Date: Fri, 24 Oct 2008 02:22:43 +0200 Subject: [PATCH] Define a dummy SA_NODEFER macro on Interix. --- ChangeLog | 7 +++++++ doc/posix-headers/signal.texi | 3 +++ lib/signal.in.h | 6 ++++++ 3 files changed, 16 insertions(+) diff --git a/ChangeLog b/ChangeLog index f966f79c39..cd514df37a 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,10 @@ +2008-10-23 Bruno Haible + + Define a dummy SA_NODEFER macro on Interix. + * lib/signal.in.h (SA_NODEFER): Define fallback. + Reported by Aleksey Cheusov via + Thomas Klausner and Eric Blake. + 2008-10-23 Bruno Haible * modules/freadahead (License): Change to LGPLv2+. diff --git a/doc/posix-headers/signal.texi b/doc/posix-headers/signal.texi index d9c2e5a1b0..860a79da83 100644 --- a/doc/posix-headers/signal.texi +++ b/doc/posix-headers/signal.texi @@ -21,6 +21,9 @@ Irix 5.3, Interix 3.5. @item The signal @code{SIGPIPE} is not defined on some platforms: mingw. +@item +The macro @code{SA_NODEFER} is not defined on some platforms: +Interix 3.5. @end itemize Portability problems not fixed by Gnulib: diff --git a/lib/signal.in.h b/lib/signal.in.h index 62e2b778d1..3c74fd8d4a 100644 --- a/lib/signal.in.h +++ b/lib/signal.in.h @@ -178,6 +178,12 @@ extern int sigaction (int, const struct sigaction *restrict, #endif /* !@HAVE_SIGACTION@, !@HAVE_STRUCT_SIGACTION_SA_SIGACTION@ */ +/* Some systems don't have SA_NODEFER. */ +#ifndef SA_NODEFER +# define SA_NODEFER 0 +#endif + + #ifdef __cplusplus } #endif -- 2.30.2