From 84c5e846b335f6dc760afb139be31b67aa708687 Mon Sep 17 00:00:00 2001 From: Yang Tse Date: Wed, 11 Apr 2007 11:02:13 +0000 Subject: convenience SIG_ATOMIC_T macro definition --- ares/setup_once.h | 11 +++++++++++ 1 file changed, 11 insertions(+) (limited to 'ares') diff --git a/ares/setup_once.h b/ares/setup_once.h index 083fdbc4f..c80fc32d9 100644 --- a/ares/setup_once.h +++ b/ares/setup_once.h @@ -212,6 +212,17 @@ typedef int sig_atomic_t; #endif +/* + * 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. */ -- cgit v1.2.3