summaryrefslogtreecommitdiffstats
path: root/src/H5config.h.in
diff options
context:
space:
mode:
authorAlbert Cheng <acheng@hdfgroup.org>2006-05-10 22:29:25 (GMT)
committerAlbert Cheng <acheng@hdfgroup.org>2006-05-10 22:29:25 (GMT)
commitb415a49c9e0978f75abbe6e8916dbaa376d2f6c5 (patch)
tree2bc703210e014be804be0a9f19d07c49f50a69b7 /src/H5config.h.in
parent40054ee38738b26dad65a961e4f7980582222b2c (diff)
downloadhdf5-b415a49c9e0978f75abbe6e8916dbaa376d2f6c5.zip
hdf5-b415a49c9e0978f75abbe6e8916dbaa376d2f6c5.tar.gz
hdf5-b415a49c9e0978f75abbe6e8916dbaa376d2f6c5.tar.bz2
[svn-r12342] Purpose:
bug fix. Description: Previous H5private.h would attempt to use the off64_t/stat64/etc by checking just sizeof __INT64 being 8. This caused errors in some machines like alpha cluster which is a 64bit machine. Its compiler supports the type __int64 but it does not support off64_t since its off_t is already 64bits big. The above code casued the compiler to complain about the unknown off64_t and such. Solution: H5private.h: Changed the code to use the pseudo standard of off64_t/stat64/etc only if sizeof(off_t) is not 64 bits AND sizeof(off64_t) exists and is 64 bits. This assumes if off64_t is defined, all those stat64, fstat64, etc are supported too. configure.in: configure: Added the testing of sizeof(off64_t) to support the above solution. Platforms tested: h5committested. Also tested at LANL QSC.
Diffstat (limited to 'src/H5config.h.in')
-rw-r--r--src/H5config.h.in3
1 files changed, 3 insertions, 0 deletions
diff --git a/src/H5config.h.in b/src/H5config.h.in
index 0f8d607..062ab9a 100644
--- a/src/H5config.h.in
+++ b/src/H5config.h.in
@@ -476,6 +476,9 @@
/* The size of a `long long', as computed by sizeof. */
#undef SIZEOF_LONG_LONG
+/* The size of a `off64_t', as computed by sizeof. */
+#undef SIZEOF_OFF64_T
+
/* The size of a `off_t', as computed by sizeof. */
#undef SIZEOF_OFF_T