--- core-92e5898fa9ffa4dd8742f5f26e790563feef286e/vcl/unx/generic/app/geninst.cxx.~1~ 2023-11-14 18:32:13.000000000 -0500 +++ core-92e5898fa9ffa4dd8742f5f26e790563feef286e/vcl/unx/generic/app/geninst.cxx 2023-11-15 11:52:00.367591187 -0500 @@ -22,7 +22,7 @@ #if defined(LINUX) # include #endif -#if defined(__FreeBSD__) +#if defined(__FreeBSD__) || defined(__sun) # include #endif @@ -87,6 +92,11 @@ break; } aKernelVer = OUString::createFromAscii(stName.sysname) + " " + aKernelVer.copy(0, nIndex); +#elif defined(__sun) + struct utsname stName; + uname( &stName ); + + aKernelVer = OUString::createFromAscii( stName.sysname ) + " " + OUString::createFromAscii( stName.release )+ " " + OUString::createFromAscii( stName.version ); #elif defined(EMSCRIPTEN) #define str(s) #s #define xstr(s) str(s)