diff options
Diffstat (limited to 'test')
-rw-r--r-- | test/big.c | 2 | ||||
-rw-r--r-- | test/h5test.c | 4 |
2 files changed, 4 insertions, 2 deletions
@@ -74,7 +74,7 @@ static int is_sparse(void) { int fd; - struct stat sb; + h5_stat_t sb; if ((fd=open("x.h5", O_RDWR|O_TRUNC|O_CREAT, 0666))<0) return 0; if (lseek(fd, (off_t)(1024*1024), SEEK_SET)!=1024*1024) return 0; diff --git a/test/h5test.c b/test/h5test.c index 6b43180..fd45a7e 100644 --- a/test/h5test.c +++ b/test/h5test.c @@ -12,6 +12,8 @@ #undef NDEBUG /*override -DNDEBUG */ #include "h5test.h" +#include <sys/types.h> +#include <sys/stat.h> #ifdef WIN32 #include <process.h> @@ -390,7 +392,7 @@ h5_fixname(const char *base_name, hid_t fapl, char *fullname, size_t size) if (strlen(fullname) + strlen(base_name) + 1 < size) { /* Append the base_name with a slash first. Multiple slashes are * handled below. */ - struct stat buf; + h5_stat_t buf; if (stat(fullname, &buf) < 0) /* The directory doesn't exist just yet */ |