diff options
author | Yang Tse <yangsita@gmail.com> | 2007-04-11 11:02:13 +0000 |
---|---|---|
committer | Yang Tse <yangsita@gmail.com> | 2007-04-11 11:02:13 +0000 |
commit | f68a45779d9ddaf6657d550a52fb4dd979f5b853 (patch) | |
tree | 560ad480408e541a4d48992132b5b6b1c907164f /setup_once.h | |
parent | 140d6b08fb0ab649e9725119296effb1d999f842 (diff) | |
download | c-ares-f68a45779d9ddaf6657d550a52fb4dd979f5b853.tar.gz c-ares-f68a45779d9ddaf6657d550a52fb4dd979f5b853.tar.bz2 c-ares-f68a45779d9ddaf6657d550a52fb4dd979f5b853.zip |
convenience SIG_ATOMIC_T macro definition
Diffstat (limited to 'setup_once.h')
-rw-r--r-- | setup_once.h | 11 |
1 files changed, 11 insertions, 0 deletions
diff --git a/setup_once.h b/setup_once.h index 083fdbc..c80fc32 100644 --- a/setup_once.h +++ b/setup_once.h @@ -213,6 +213,17 @@ typedef int sig_atomic_t; /* + * Convenience SIG_ATOMIC_T definition + */ + +#ifdef HAVE_SIG_ATOMIC_T_VOLATILE +#define SIG_ATOMIC_T static sig_atomic_t +#else +#define SIG_ATOMIC_T static volatile sig_atomic_t +#endif + + +/* * Default return type for signal handlers. */ |