uwimap: fix build using gcc14 and recompile for library/security/openssl-3
[oi-userland.git] / components / desktop / libreoffice / patches / 18-show-illumos-version-in-about.patch
blob838dfec29185caa0b12d437e72a4249899ab6e67
1 --- core-92e5898fa9ffa4dd8742f5f26e790563feef286e/vcl/unx/generic/app/geninst.cxx.~1~ 2023-11-14 18:32:13.000000000 -0500
2 +++ core-92e5898fa9ffa4dd8742f5f26e790563feef286e/vcl/unx/generic/app/geninst.cxx 2023-11-15 11:52:00.367591187 -0500
3 @@ -22,7 +22,7 @@
4 #if defined(LINUX)
5 # include <stdio.h>
6 #endif
7 -#if defined(__FreeBSD__)
8 +#if defined(__FreeBSD__) || defined(__sun)
9 # include <sys/utsname.h>
10 #endif
12 @@ -87,6 +92,11 @@
13 break;
15 aKernelVer = OUString::createFromAscii(stName.sysname) + " " + aKernelVer.copy(0, nIndex);
16 +#elif defined(__sun)
17 + struct utsname stName;
18 + uname( &stName );
20 + aKernelVer = OUString::createFromAscii( stName.sysname ) + " " + OUString::createFromAscii( stName.release )+ " " + OUString::createFromAscii( stName.version );
21 #elif defined(EMSCRIPTEN)
22 #define str(s) #s
23 #define xstr(s) str(s)