summaryrefslogtreecommitdiffstats
path: root/perform/zip_perf.c
diff options
context:
space:
mode:
Diffstat (limited to 'perform/zip_perf.c')
-rw-r--r--perform/zip_perf.c24
1 files changed, 1 insertions, 23 deletions
diff --git a/perform/zip_perf.c b/perform/zip_perf.c
index 08177d8..5729baf 100644
--- a/perform/zip_perf.c
+++ b/perform/zip_perf.c
@@ -21,20 +21,6 @@
* -1 to -9 : compression level
*/
-#include <stdio.h>
-#include <stdlib.h>
-#include <stdarg.h>
-#include <string.h>
-#include <errno.h>
-#include <fcntl.h>
-#include <math.h>
-#include <sys/types.h>
-#include <sys/stat.h>
-
-#ifdef H5_HAVE_UNISTD_H
-# include <unistd.h>
-#endif
-
/* our header files */
#include "h5test.h"
#include "h5tools_utils.h"
@@ -43,14 +29,6 @@
#include <zlib.h>
-#if defined(MSDOS) || defined(OS2) || defined(_WIN32)
-# include <fcntl.h>
-# include <io.h>
-# define SET_BINARY_MODE(file) setmode(fileno(file), O_BINARY)
-#else
-# define SET_BINARY_MODE(file) /* nothing */
-#endif /* MSDOS || OS2 || _WIN32 */
-
#ifdef VMS
# define unlink delete
# define GZ_SUFFIX "-gz"
@@ -430,7 +408,7 @@ static void
fill_with_random_data(Bytef *src, uLongf src_len)
{
register unsigned u;
- struct stat stat_buf;
+ h5_stat_t stat_buf;
if (stat("/dev/urandom", &stat_buf) == 0) {
uLongf len = src_len;