diff options
| author | Michele Calgaro <michele.calgaro@yahoo.it> | 2026-01-29 17:53:44 +0900 |
|---|---|---|
| committer | Michele Calgaro <michele.calgaro@yahoo.it> | 2026-01-29 17:53:44 +0900 |
| commit | db4f86a7dd149f49afe69b19c11438abd4560123 (patch) | |
| tree | f02d14f3aef155ff6d39e8565f76245b44fccaef /utilities | |
| parent | 9ab9c6554c4218afd7ec96e037e0244f9ec85338 (diff) | |
| download | smb4k-master.tar.gz smb4k-master.zip | |
Remove support for Irix, which is discontinued and does not provide a c++17 complaint compiler.HEADmaster
Signed-off-by: Michele Calgaro <michele.calgaro@yahoo.it>
Diffstat (limited to 'utilities')
| -rw-r--r-- | utilities/smb4k_umount.cpp | 15 |
1 files changed, 2 insertions, 13 deletions
diff --git a/utilities/smb4k_umount.cpp b/utilities/smb4k_umount.cpp index 550544a..d5558c9 100644 --- a/utilities/smb4k_umount.cpp +++ b/utilities/smb4k_umount.cpp @@ -144,10 +144,8 @@ bool check_filesystem( const char *path, const char *fs ) struct statvfs filesystem; #endif -#if !defined(__sun) && !defined(__irix__) +#if !defined(__sun) if ( statfs( path, &filesystem ) == -1 ) -#elif defined(__irix__) - if ( statfs( path, &filesystem, sizeof( filesystem ), 0 ) == -1 ) #else if ( statvfs( path, &filesystem ) == -1 ) #endif @@ -168,7 +166,7 @@ bool check_filesystem( const char *path, const char *fs ) return ok; } -#if !defined(__FreeBSD__) && !defined(__sun) && !defined(__irix__) +#if !defined(__FreeBSD__) && !defined(__sun) // First entry is for CIFS, the second for SMBFS. if ( (uint)filesystem.f_type == 0xFF534D42 && !strncmp( fs, "cifs", strlen( fs )+1 ) ) { @@ -192,15 +190,6 @@ bool check_filesystem( const char *path, const char *fs ) { ok = true; } -#elif defined(__irix__) - if ( (uint)filesystem.f_fstyp == 0xFF534D42 && !strncmp( fs, "cifs", strlen( fs )+1 ) ) - { - ok = true; - } - else if ( (uint)filesystem.f_basetype == 0x517B && !strncmp( fs, "smbfs", strlen( fs )+1 ) ) - { - ok = true; - } #endif else { |
