summaryrefslogtreecommitdiffstats
path: root/utilities
diff options
context:
space:
mode:
Diffstat (limited to 'utilities')
-rw-r--r--utilities/smb4k_umount.cpp15
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
{