mirror of
https://github.com/gnustep/libs-base.git
synced 2025-04-26 10:11:03 +00:00
utsname.release is better than utsname.version
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/base/trunk@23736 72102866-910b-0410-8b05-ffd578937521
This commit is contained in:
parent
5b4cd6ad8a
commit
dd4837555b
1 changed files with 5 additions and 1 deletions
|
@ -978,8 +978,12 @@ static void determineOperatingSystem()
|
||||||
if (uname(&uts) == 0)
|
if (uname(&uts) == 0)
|
||||||
{
|
{
|
||||||
os = [NSString stringWithCString: uts.sysname encoding: [NSString defaultCStringEncoding]];
|
os = [NSString stringWithCString: uts.sysname encoding: [NSString defaultCStringEncoding]];
|
||||||
|
/* Get the operating system version ... usually the version string
|
||||||
|
* is pretty horrible, and the kernel release string actually
|
||||||
|
* makes more sense.
|
||||||
|
*/
|
||||||
_operatingSystemVersion = [[NSString alloc]
|
_operatingSystemVersion = [[NSString alloc]
|
||||||
initWithCString: uts.version
|
initWithCString: uts.release
|
||||||
encoding: [NSString defaultCStringEncoding]];
|
encoding: [NSString defaultCStringEncoding]];
|
||||||
}
|
}
|
||||||
#endif /* HAVE_SYS_UTSNAME_H */
|
#endif /* HAVE_SYS_UTSNAME_H */
|
||||||
|
|
Loading…
Reference in a new issue