make this build on SunOS/Solaris

This commit is contained in:
Pavel Maryanov 2017-10-10 14:05:28 +01:00 committed by moneromooo-monero
parent f48aeab5c4
commit a17efcb039
No known key found for this signature in database
GPG key ID: 686F07454D6CEFC3
9 changed files with 42 additions and 3 deletions

View file

@ -405,7 +405,7 @@ namespace tools
#else
std::string get_nix_version_display_string()
{
utsname un;
struct utsname un;
if(uname(&un) < 0)
return std::string("*nix: failed to get os version");