summaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
Diffstat (limited to 'src')
-rw-r--r--src/H5detect.c4
1 files changed, 3 insertions, 1 deletions
diff --git a/src/H5detect.c b/src/H5detect.c
index 17f6db2..1f79869 100644
--- a/src/H5detect.c
+++ b/src/H5detect.c
@@ -356,7 +356,7 @@ precision (detected_t *d)
COMP_ALIGN = (size_t)((char*)(&(s.x)) - (char*)(&s)); \
}
-#if defined(H5_HAVE_LONGJMP) && defined(H5_HAVE_SIGNAL) && defined(H5_HAVE_SIGLONGJMP)
+#if defined(H5_HAVE_LONGJMP) && defined(H5_HAVE_SIGNAL)
#define ALIGNMENT(TYPE,INFO) { \
char *volatile _buf=NULL; \
volatile TYPE _val=1; \
@@ -493,7 +493,9 @@ sigbus_handler(int UNUSED signo)
{
signal(SIGBUS, sigbus_handler);
longjmp(jbuf_g, 1);
+#ifdef H5_HAVE_SIGLONGJMP
siglongjmp(jbuf_g, 1);
+#endif /* H5_HAVE_SIGLONGJMP */
}