commit | fdfa6457c777870152acee793d3d4aa14e011503 | [log] [tgz] |
---|---|---|
author | Dieter Baron <dillo@nih.at> | Thu May 07 11:19:22 2020 +0200 |
committer | Dieter Baron <dillo@nih.at> | Thu May 07 11:19:22 2020 +0200 |
tree | 2bf3ce39d3782221ccba51c7c5bde7d6ff36dcbc | |
parent | 3a8f0592271386d7d321334f767da7d1e5f2b175 [diff] |
Restore S_IWUSR compatibility define for Windows.
diff --git a/lib/zip_source_file_stdio.c b/lib/zip_source_file_stdio.c index c95c0c0..4e08d6e 100644 --- a/lib/zip_source_file_stdio.c +++ b/lib/zip_source_file_stdio.c
@@ -41,6 +41,12 @@ #include <stdlib.h> #include <sys/stat.h> +#ifdef _WIN32 +# ifndef S_IWUSR +# define S_IWUSR _S_IWRITE +# endif +#endif + zip_source_file_operations_t ops_stdio_read = { _zip_stdio_op_close, NULL,