Skip to content

Commit

Permalink
Merge pull request #55 from dscho/do-let-uname-report-msys2-runtime-c…
Browse files Browse the repository at this point in the history
…ommit

uname: do report msys2-runtime commit hash, too
  • Loading branch information
dscho authored Jul 3, 2023
2 parents cffa81d + 0faeaaf commit b8ff8df
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions winsup/cygwin/uname.cc
Original file line number Diff line number Diff line change
Expand Up @@ -76,13 +76,13 @@ uname_x (struct utsname *name)
#pragma GCC diagnostic push
#pragma GCC diagnostic ignored "-Wformat-truncation="
#ifdef CYGPORT_RELEASE_INFO
snprintf (name->release, _UTSNAME_LENGTH, "%s.%s",
__XSTRING (CYGPORT_RELEASE_INFO), name->machine);
snprintf (name->release, _UTSNAME_LENGTH, "%s-%s.%s",
__XSTRING (CYGPORT_RELEASE_INFO), MSYS2_RUNTIME_COMMIT_SHORT, name->machine);
#else
extern const char *uname_dev_version;
if (uname_dev_version && uname_dev_version[0])
snprintf (name->release, _UTSNAME_LENGTH, "%s.%s",
uname_dev_version, name->machine);
snprintf (name->release, _UTSNAME_LENGTH, "%s-%s.%s",
uname_dev_version, MSYS2_RUNTIME_COMMIT_SHORT, name->machine);
else
__small_sprintf (name->release, "%d.%d.%d-%s-api-%d.%s",
cygwin_version.dll_major / 1000,
Expand Down

0 comments on commit b8ff8df

Please sign in to comment.