mirror of
https://github.com/GothenburgBitFactory/taskwarrior.git
synced 2025-06-26 10:54:26 +02:00
Portability
- Added support for GNU/Hurd and GNU/kFreeBSD systems (thanks to Jakub Wilk).
This commit is contained in:
parent
31b44de8b0
commit
5cfd7b0cc6
5 changed files with 18 additions and 0 deletions
|
@ -26,6 +26,10 @@ elseif (${CMAKE_SYSTEM_NAME} MATCHES "NetBSD")
|
|||
set (NETBSD true)
|
||||
elseif (${CMAKE_SYSTEM_NAME} MATCHES "SunOS")
|
||||
set (SOLARIS true)
|
||||
elseif (${CMAKE_SYSTEM_NAME} MATCHES "GNU/kFreeBSD")
|
||||
set (KFREEBSD true)
|
||||
elseif (${CMAKE_SYSTEM_NAME} MATCHES "GNU/Hurd")
|
||||
set (GNUHURD true)
|
||||
else (${CMAKE_SYSTEM_NAME} MATCHES "Linux")
|
||||
set (UNKNOWN true)
|
||||
endif (${CMAKE_SYSTEM_NAME} MATCHES "Linux")
|
||||
|
|
|
@ -35,6 +35,8 @@
|
|||
#cmakedefine NETBSD
|
||||
#cmakedefine HAIKU
|
||||
#cmakedefine SOLARIS
|
||||
#cmakedefine KFREEBSD
|
||||
#cmakedefine GNUHURD
|
||||
#cmakedefine UNKNOWN
|
||||
|
||||
/* Found the GnuTLS library */
|
||||
|
|
|
@ -124,6 +124,10 @@ const std::string DOM::get (const std::string& name)
|
|||
return "NetBSD";
|
||||
#elif defined (LINUX)
|
||||
return "Linux";
|
||||
#elif defined (KFREEBSD)
|
||||
return "GNU/kFreeBSD";
|
||||
#elif defined (GNUHURD)
|
||||
return "GNU/Hurd";
|
||||
#else
|
||||
return STRING_DOM_UNKNOWN;
|
||||
#endif
|
||||
|
|
|
@ -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
|
||||
|
|
|
@ -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
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue