summaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorPatrick Lu <ptlu@hawkwind.ncsa.uiuc.edu>1999-03-24 20:01:16 (GMT)
committerPatrick Lu <ptlu@hawkwind.ncsa.uiuc.edu>1999-03-24 20:01:16 (GMT)
commited27d0459b8afb29167b19b4a22d5229eb0931e5 (patch)
tree84d4a7a01fde100ba4887517733b6cb0c8a859da /src
parenta74acc88b0a9c08748e3225011a6b3959af4377d (diff)
downloadhdf5-ed27d0459b8afb29167b19b4a22d5229eb0931e5.zip
hdf5-ed27d0459b8afb29167b19b4a22d5229eb0931e5.tar.gz
hdf5-ed27d0459b8afb29167b19b4a22d5229eb0931e5.tar.bz2
[svn-r1164]
added a #define SIGBUS SIGILL is SIGBUS not defined
Diffstat (limited to 'src')
-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