blob: 049ba5d4e9f0f37a95b89423acc1069467a2a9f5 (
plain) (
blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
|
--- src/systeminfo.cpp.orig 2018-11-02 00:15:39 UTC
+++ src/systeminfo.cpp
@@ -191,6 +191,16 @@ SystemInfo::SystemInfo() : QObject(QCoreApplication::i
}
#endif
+#ifdef __FreeBSD__
+ // QSysInfo::productVersion() on FreeBSD currently does not return
+ // correct OS version (see PR 237075)
+ if (os_version_str_ == "unknown") {
+ struct utsname u;
+ uname(&u);
+ os_version_str_ = u.release;
+ }
+#endif
+
if (!os_version_str_.isEmpty() && os_name_str_.contains(os_version_str_)) {
os_version_str_.clear();
}
|