From 497297648c372682f600e6399c7b1399bebba254 Mon Sep 17 00:00:00 2001 From: Michele Calgaro Date: Sun, 16 Jan 2022 23:49:20 +0900 Subject: Replaced USE_SOLARIS definition with __sun. Signed-off-by: Michele Calgaro --- smb4k/core/smb4kmounter.cpp | 12 ++++++------ utilities/smb4k_umount.cpp | 12 ++++++------ 2 files changed, 12 insertions(+), 12 deletions(-) diff --git a/smb4k/core/smb4kmounter.cpp b/smb4k/core/smb4kmounter.cpp index 68eccaf..5091898 100644 --- a/smb4k/core/smb4kmounter.cpp +++ b/smb4k/core/smb4kmounter.cpp @@ -37,9 +37,9 @@ #include // system includes -#if !defined(__FreeBSD__) && !defined(__solaris__) && !defined(USE_SOLARIS) +#if !defined(__FreeBSD__) && !defined(__sun) #include -#elif defined(__solaris__) || defined(USE_SOLARIS) +#elif defined(__sun) #include #elif defined(__FreeBSD__) #include @@ -1046,13 +1046,13 @@ void Smb4KMounter::processMount() TQString name = TQString( "//%1/%2" ).arg( m_priv->host() ).arg( m_priv->share() ); // Check file system -#if !defined(__solaris__) +#if !defined(__sun) struct statfs filesystem; #else struct statvfs filesystem; #endif -#if !defined(__solaris__) && !defined(__irix__) +#if !defined(__sun) && !defined(__irix__) if ( statfs( m_priv->path(), &filesystem ) == -1 ) #elif defined(__irix__) if ( statfs( m_priv->path(), &filesystem, sizeof( filesystem ), 0 ) == -1 ) @@ -1079,7 +1079,7 @@ void Smb4KMounter::processMount() } else { -#if !defined(__FreeBSD__) && !defined(__solaris__) && !defined(__irix__) +#if !defined(__FreeBSD__) && !defined(__sun) && !defined(__irix__) if ( (uint)filesystem.f_type == 0xFF534D42 /* CIFS */) { // The user name will be send if no login was specified. @@ -1095,7 +1095,7 @@ void Smb4KMounter::processMount() share = new Smb4KShare( name, m_priv->path(), "smbfs", (int)getuid(), (int)getgid() ); m_mounted_shares.append( share ); } -#elif defined(__solaris__) +#elif defined(__sun) if ( (uint)filesystem.f_basetype == 0xFF534D42 /* CIFS */) { // The user name will be send if no login was specified. diff --git a/utilities/smb4k_umount.cpp b/utilities/smb4k_umount.cpp index 23eb266..0fea963 100644 --- a/utilities/smb4k_umount.cpp +++ b/utilities/smb4k_umount.cpp @@ -27,9 +27,9 @@ #include #endif -#if !defined(__FreeBSD__) && !defined(__solaris__) && !defined(USE_SOLARIS) +#if !defined(__FreeBSD__) && !defined(__sun) #include -#elif defined(__solaris__) || defined(USE_SOLARIS) +#elif defined(__sun) #include #include #elif defined(__FreeBSD__) @@ -138,13 +138,13 @@ bool check_filesystem( const char *path, const char *fs ) { bool ok = false; -#if !defined(__solaris__) && !defined(USE_SOLARIS) +#if !defined(__sun) struct statfs filesystem; #else struct statvfs filesystem; #endif -#if !defined(__solaris__) && !defined(USE_SOLARIS) && !defined(__irix__) +#if !defined(__sun) && !defined(__irix__) if ( statfs( path, &filesystem ) == -1 ) #elif defined(__irix__) if ( statfs( path, &filesystem, sizeof( filesystem ), 0 ) == -1 ) @@ -168,7 +168,7 @@ bool check_filesystem( const char *path, const char *fs ) return ok; } -#if !defined(__FreeBSD__) && !defined(__solaris__) && !defined(USE_SOLARIS) && !defined(__irix__) +#if !defined(__FreeBSD__) && !defined(__sun) && !defined(__irix__) // First entry is for CIFS, the second for SMBFS. if ( (uint)filesystem.f_type == 0xFF534D42 && !strncmp( fs, "cifs", strlen( fs )+1 ) ) { @@ -183,7 +183,7 @@ bool check_filesystem( const char *path, const char *fs ) { ok = true; } -#elif defined(__solaris__) || defined(USE_SOLARIS) +#elif defined(__sun) if ( (uint)filesystem.f_basetype == 0xFF534D42 && !strncmp( fs, "cifs", strlen( fs )+1 ) ) { ok = true; -- cgit v1.2.1