summaryrefslogtreecommitdiffstats
path: root/configure.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 /configure.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 'configure.in')
-rw-r--r--configure.in1
1 files changed, 1 insertions, 0 deletions
diff --git a/configure.in b/configure.in
index 8ff67e1..32e316a 100644
--- a/configure.in
+++ b/configure.in
@@ -1009,6 +1009,7 @@ cat >>confdefs.h <<\EOF
#include <sys/types.h> /*for off_t definition*/
EOF
AC_CHECK_SIZEOF([off_t], [4])
+AC_CHECK_SIZEOF([off64_t], [8])
dnl Checkpoint the cache
AC_CACHE_SAVE