summaryrefslogtreecommitdiff
path: root/setup_once.h
diff options
context:
space:
mode:
authorYang Tse <yangsita@gmail.com>2007-04-11 11:02:13 +0000
committerYang Tse <yangsita@gmail.com>2007-04-11 11:02:13 +0000
commitf68a45779d9ddaf6657d550a52fb4dd979f5b853 (patch)
tree560ad480408e541a4d48992132b5b6b1c907164f /setup_once.h
parent140d6b08fb0ab649e9725119296effb1d999f842 (diff)
downloadc-ares-f68a45779d9ddaf6657d550a52fb4dd979f5b853.tar.gz
c-ares-f68a45779d9ddaf6657d550a52fb4dd979f5b853.tar.bz2
c-ares-f68a45779d9ddaf6657d550a52fb4dd979f5b853.zip
convenience SIG_ATOMIC_T macro definition
Diffstat (limited to 'setup_once.h')
-rw-r--r--setup_once.h11
1 files changed, 11 insertions, 0 deletions
diff --git a/setup_once.h b/setup_once.h
index 083fdbc..c80fc32 100644
--- a/setup_once.h
+++ b/setup_once.h
@@ -213,6 +213,17 @@ typedef int sig_atomic_t;
/*
+ * 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.
*/