diff options
author | Yang Tse <yangsita@gmail.com> | 2006-11-22 18:41:34 +0000 |
---|---|---|
committer | Yang Tse <yangsita@gmail.com> | 2006-11-22 18:41:34 +0000 |
commit | 73226415fc51cdfbfa730eae80119411d65dd124 (patch) | |
tree | f73b524b831d846a98d09e6ff015746b76651392 /lib | |
parent | ab160ef445433f8d4767fafd2efa5361835f8b71 (diff) |
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.
Diffstat (limited to 'lib')
-rw-r--r-- | lib/setup_once.h | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/lib/setup_once.h b/lib/setup_once.h index 04640707c..07909475c 100644 --- a/lib/setup_once.h +++ b/lib/setup_once.h @@ -130,5 +130,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 */ |