aboutsummaryrefslogtreecommitdiff
path: root/include/compat.h
diff options
context:
space:
mode:
authorDavid Oberhollenzer <david.oberhollenzer@sigma-star.at>2023-06-16 01:41:06 +0200
committerDavid Oberhollenzer <david.oberhollenzer@sigma-star.at>2023-06-16 03:51:11 +0200
commitc81e80bf35874696d9735f70e5c8327f92b5aca4 (patch)
tree5ef99ab43bde73674391d02ccc65d357874a34c1 /include/compat.h
parent8bff2715bfdfd2e6ce0c707f1310b169d4e454d0 (diff)
libsquashfs: merge windows & unix file I/O primitives
By adding additional close/duplicate primitives, the remaining, mostly identical istream/ostream/file code is mostly identical between Windows and Unix and be merged, mostly without stitches. Signed-off-by: David Oberhollenzer <david.oberhollenzer@sigma-star.at>
Diffstat (limited to 'include/compat.h')
-rw-r--r--include/compat.h2
1 files changed, 2 insertions, 0 deletions
diff --git a/include/compat.h b/include/compat.h
index f376665..e62df81 100644
--- a/include/compat.h
+++ b/include/compat.h
@@ -240,6 +240,8 @@ char *strchrnul(const char *s, int c);
#define AT_FDCWD ((int)0xDEADBEEF)
#define AT_SYMLINK_NOFOLLOW (0x01)
+typedef SSIZE_T ssize_t;
+
int fchownat(int dirfd, const char *path, int uid, int gid, int flags);
int fchmodat(int dirfd, const char *path, int mode, int flags);