Portability

- Added support for GNU/Hurd and GNU/kFreeBSD systems (thanks to Jakub Wilk).
This commit is contained in:
Paul Beckingham 2013-04-13 14:49:59 -04:00
parent 31b44de8b0
commit 5cfd7b0cc6
5 changed files with 18 additions and 0 deletions

View file

@ -87,6 +87,10 @@ int CmdDiagnostics::execute (std::string& output)
"NetBSD"
#elif defined (LINUX)
"Linux"
#elif defined (KFREEBSD)
"GNU/kFreeBSD"
#elif defined (GNUHURD)
"GNU/Hurd"
#else
STRING_CMD_DIAG_UNKNOWN
#endif

View file

@ -88,6 +88,10 @@ int CmdVersion::execute (std::string& output)
<< "netbsd"
#elif defined (LINUX)
<< "linux"
#elif defined (KFREEBSD)
"gnu-kfreebsd"
#elif defined (GNUHURD)
<< "gnu-hurd"
#else
<< STRING_CMD_VERSION_UNKNOWN
#endif