Skip to content

Commit

Permalink
Solaris: fix name of OS
Browse files Browse the repository at this point in the history
  • Loading branch information
alex-w committed Jan 28, 2024
1 parent 9b89508 commit d97aa02
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion src/StelLogger.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -336,7 +336,7 @@ void StelLogger::init(const QString& logFilePath)
#ifdef Q_OS_SOLARIS
processor_info_t pinfo;
processor_info(0, &pinfo);
writeLog(QString("Processor name: %1").arg(pinfo.pi_processor_type));
//writeLog(QString("Processor name: %1").arg(pinfo.pi_processor_type));
writeLog(QString("Processor speed: %1 MHz").arg(pinfo.pi_clock));

int ncpu = sysconf( _SC_NPROCESSORS_ONLN );
Expand Down
4 changes: 2 additions & 2 deletions src/core/StelUtils.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,7 @@
#include <malloc.h>
#endif

#if defined Q_OS_BSD4 || defined Q_OS_HAIKU && !defined Q_OS_MACOS
#if defined Q_OS_BSD4 || defined Q_OS_HAIKU || defined Q_OS_SOLARIS && !defined Q_OS_MACOS
#include <sys/utsname.h>
#endif

Expand Down Expand Up @@ -81,7 +81,7 @@ QString getOperatingSystemInfo()
{
QString OS = QSysInfo::prettyProductName();

#if defined Q_OS_BSD4 || defined Q_OS_HAIKU && !defined Q_OS_MACOS
#if defined Q_OS_BSD4 || defined Q_OS_HAIKU || defined Q_OS_SOLARIS && !defined Q_OS_MACOS
struct utsname buff;
if (uname(&buff) != -1)
OS = QString("%1 %2").arg(buff.sysname, buff.release);
Expand Down

0 comments on commit d97aa02

Please sign in to comment.