From 73226415fc51cdfbfa730eae80119411d65dd124 Mon Sep 17 00:00:00 2001 From: Yang Tse Date: Wed, 22 Nov 2006 18:41:34 +0000 Subject: Added a check in configure that verifies if is available, defining HAVE_SIGNAL_H if the header is available. Added a check in configure that tests if the sig_atomic_t type is available, defining HAVE_SIG_ATOMIC_T if it is available. Providing a suitable default in setup_once.h if not available. Added a check in configure that tests if the sig_atomic_t type is already defined as volatile, defining HAVE_SIG_ATOMIC_T_VOLATILE if it is available and already defined as volatile. --- ares/setup_once.h | 10 ++++++++++ 1 file changed, 10 insertions(+) (limited to 'ares/setup_once.h') diff --git a/ares/setup_once.h b/ares/setup_once.h index 224ab692a..23d75ca0d 100644 --- a/ares/setup_once.h +++ b/ares/setup_once.h @@ -123,5 +123,15 @@ #define ISPRINT(x) (isprint((int) ((unsigned char)x))) +/* + * Typedef to 'int' if sig_atomic_t is not an available 'typedefed' type. + */ + +#ifndef HAVE_SIG_ATOMIC_T +typedef int sig_atomic_t; +#define HAVE_SIG_ATOMIC_T +#endif + + #endif /* __SETUP_ONCE_H */ -- cgit v1.2.3