]> git.ipfire.org Git - thirdparty/libbsd.git/commitdiff
Windows support for HASHFileChunk()
authorAaron Dierking <aarond@fb.com>
Thu, 14 Jun 2018 18:38:32 +0000 (11:38 -0700)
committerGuillem Jover <guillem@hadrons.org>
Mon, 18 Jun 2018 02:31:00 +0000 (04:31 +0200)
<io.h> provides the necessary file I/O functions.

[guillem@hadrons.org: Move include before <hashinc>. ]

Signed-off-by: Guillem Jover <guillem@hadrons.org>
src/hash/helper.c

index d9362d35c597e402be5e2ee38cec2bc68cb2008e..352f978ec09a235babfa8d6ab55c758ef2c4cc6d 100644 (file)
@@ -19,6 +19,9 @@
 #include <stdio.h>
 #include <string.h>
 #include <unistd.h>
+#ifdef _WIN32
+#include <io.h>
+#endif
 
 #include <hashinc>