diff options
Diffstat (limited to 'lib')
-rw-r--r-- | lib/setup_once.h | 11 |
1 files changed, 11 insertions, 0 deletions
diff --git a/lib/setup_once.h b/lib/setup_once.h index 03141a4ff..4bbde0ec8 100644 --- a/lib/setup_once.h +++ b/lib/setup_once.h @@ -220,6 +220,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. */ |