diff options
author | David Oberhollenzer <david.oberhollenzer@sigma-star.at> | 2019-11-18 15:09:31 +0100 |
---|---|---|
committer | David Oberhollenzer <david.oberhollenzer@sigma-star.at> | 2019-11-19 21:12:56 +0100 |
commit | 3497201ce66f35401bd02109c06c110671493ad8 (patch) | |
tree | 0f3e4fcdc99df02e4879c8154396d5ae89bc5758 /unpack/rdsquashfs.h | |
parent | 585997f4677db3707eb99b1012dad036ddecc0d0 (diff) |
Make rdsquashfs unpack work on Windows
AFAIK the only thing we can actually unpack on Windows is regular
files and directories, so only do that.
Furthermore, we have no way of setting Unix file attributes, so
skip that.
Signed-off-by: David Oberhollenzer <david.oberhollenzer@sigma-star.at>
Diffstat (limited to 'unpack/rdsquashfs.h')
-rw-r--r-- | unpack/rdsquashfs.h | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/unpack/rdsquashfs.h b/unpack/rdsquashfs.h index a36d283..9e21050 100644 --- a/unpack/rdsquashfs.h +++ b/unpack/rdsquashfs.h @@ -12,6 +12,10 @@ #include "fstree.h" #include "util/util.h" +#ifdef _WIN32 +#define WIN32_LEAN_AND_MEAN +#include <windows.h> +#endif #ifdef HAVE_SYS_XATTR_H #include <sys/xattr.h> #endif |