Add some compatibility defines for libssh

This commit is contained in:
Jeremy Soller
2025-08-04 19:54:45 -06:00
parent 311d5621b8
commit 4a805ea97c
3 changed files with 11 additions and 0 deletions
+5
View File
@@ -25,6 +25,11 @@ pub const S_IRUSR: c_int = 0o0_400;
pub const S_IWUSR: c_int = 0o0_200;
pub const S_IXUSR: c_int = 0o0_100;
// Defined for compatibility
pub const S_IREAD: c_int = S_IRUSR;
pub const S_IWRITE: c_int = S_IWUSR;
pub const S_IEXEC: c_int = S_IXUSR;
pub const S_IRWXG: c_int = 0o0_070;
pub const S_IRGRP: c_int = 0o0_040;
pub const S_IWGRP: c_int = 0o0_020;