Commit aeea1f408381007aefdd391fab6d9fdb47c69521

Aaron Dierking 2018-06-14T11:38:32

Windows support for HASHFileChunk() <io.h> provides the necessary file I/O functions. [guillem@hadrons.org: Move include before <hashinc>. ] Signed-off-by: Guillem Jover <guillem@hadrons.org>

1
2
3
4
5
6
7
8
9
10
11
12
13
14
diff --git a/src/hash/helper.c b/src/hash/helper.c
index d9362d3..352f978 100644
--- a/src/hash/helper.c
+++ b/src/hash/helper.c
@@ -19,6 +19,9 @@
 #include <stdio.h>
 #include <string.h>
 #include <unistd.h>
+#ifdef _WIN32
+#include <io.h>
+#endif
 
 #include <hashinc>