mirror of
git://sourceware.org/git/newlib-cygwin.git
synced 2025-01-19 04:49:25 +08:00
Fix sysname.
This commit is contained in:
parent
4698cc8ec8
commit
f61425ac33
@ -22,12 +22,12 @@ uname (struct utsname *name)
|
||||
SYSTEM_INFO sysinfo;
|
||||
extern char osname[];
|
||||
|
||||
memset (name, 0, sizeof (*name));
|
||||
__small_sprintf (name->sysname, "CYGWIN_%s", osname);
|
||||
|
||||
GetSystemInfo (&sysinfo);
|
||||
|
||||
/* Computer name */
|
||||
memset (name, 0, sizeof (*name));
|
||||
len = sizeof (name->nodename) - 1;
|
||||
GetComputerNameA (name->nodename, &len);
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user