X-Git-Url: https://erislabs.net/gitweb/?a=blobdiff_plain;f=lib%2Fsignal.in.h;h=5c42fe9e260fb003210e6a66e240a6bb0518a214;hb=ec60d8959e16a743f09704c397931f2621f511ae;hp=62e2b778d18e47a35388e7d1c333f9496f4e30a1;hpb=3c08dcc35ce66a98261584beea4c5006fa28ca9b;p=gnulib.git diff --git a/lib/signal.in.h b/lib/signal.in.h index 62e2b778d..5c42fe9e2 100644 --- a/lib/signal.in.h +++ b/lib/signal.in.h @@ -1,6 +1,6 @@ /* A GNU-like . - Copyright (C) 2006-2008 Free Software Foundation, Inc. + Copyright (C) 2006-2009 Free Software Foundation, Inc. This program is free software: you can redistribute it and/or modify it under the terms of the GNU General Public License as published by @@ -41,6 +41,15 @@ Also, mingw defines sigset_t not in , but in . */ #include +/* On AIX, sig_atomic_t already includes volatile. C99 requires that + 'volatile sig_atomic_t' ignore the extra modifier, but C89 did not. + Hence, redefine this to a non-volatile type as needed. */ +#if ! @HAVE_TYPE_VOLATILE_SIG_ATOMIC_T@ +typedef int rpl_sig_atomic_t; +# undef sig_atomic_t +# define sig_atomic_t rpl_sig_atomic_t +#endif + #ifdef __cplusplus extern "C" { #endif @@ -178,6 +187,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