aboutsummaryrefslogtreecommitdiff
path: root/sftp/syscall_fixed.go
diff options
context:
space:
mode:
Diffstat (limited to 'sftp/syscall_fixed.go')
-rw-r--r--sftp/syscall_fixed.go9
1 files changed, 9 insertions, 0 deletions
diff --git a/sftp/syscall_fixed.go b/sftp/syscall_fixed.go
new file mode 100644
index 0000000..d404577
--- /dev/null
+++ b/sftp/syscall_fixed.go
@@ -0,0 +1,9 @@
+// +build plan9 windows js,wasm
+
+// Go defines S_IFMT on windows, plan9 and js/wasm as 0x1f000 instead of
+// 0xf000. None of the the other S_IFxyz values include the "1" (in 0x1f000)
+// which prevents them from matching the bitmask.
+
+package sftp
+
+const S_IFMT = 0xf000