summaryrefslogtreecommitdiffstats
path: root/src/H5private.h
diff options
context:
space:
mode:
Diffstat (limited to 'src/H5private.h')
-rw-r--r--src/H5private.h11
1 files changed, 11 insertions, 0 deletions
diff --git a/src/H5private.h b/src/H5private.h
index ecac81c..84f3b0f 100644
--- a/src/H5private.h
+++ b/src/H5private.h
@@ -133,6 +133,17 @@
# include "ProcIDs.h"
#endif
+
+/*
+ * NT doesn't define SIGBUS, but since NT only runs on processors
+ * that do not have alignment constraints a SIGBUS would never be
+ * raised, so we just replace it with SIGILL (which also should
+ * never be raised by the hdf5 library).
+ */
+#ifndef SIGBUS
+# define SIGBUS SIGILL
+#endif
+
/*
* Does the compiler support the __attribute__(()) syntax? This is how gcc
* suppresses warnings about unused function arguments. It's no big deal if