termux-packages/packages/wasmedge/lib-host-wasi-linux.h.patch

15 lines
412 B
Diff
Raw Normal View History

2022-02-17 15:00:41 +01:00
--- a/lib/host/wasi/linux.h
+++ b/lib/host/wasi/linux.h
@@ -312,7 +312,11 @@
}
}
+#if !defined __ANDROID__ || defined __aarch64__ || defined __x86_64__
inline constexpr __wasi_filetype_t fromFileType(mode_t Mode) noexcept {
+#else
+inline constexpr __wasi_filetype_t fromFileType(unsigned int Mode) noexcept {
+#endif
switch (Mode & S_IFMT) {
case S_IFBLK:
return __WASI_FILETYPE_BLOCK_DEVICE;