diff options
Diffstat (limited to 'lib/setup_once.h')
-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 */ |