Added a check in configure that verifies if <signal.h> 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.
This commit is contained in:
Yang Tse
2006-11-22 18:41:35 +00:00
parent 4a23aef23c
commit 7f7d2ad5c6
3 changed files with 54 additions and 0 deletions
+10
View File
@@ -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 */