diff options
author | Nathan Scott <nathans@redhat.com> | 2021-03-18 08:23:07 +1100 |
---|---|---|
committer | Nathan Scott <nathans@redhat.com> | 2021-03-22 17:16:40 +1100 |
commit | d56d23d91adf3fad512e5311fcdd0ca129e820c7 (patch) | |
tree | 8c6d3059243904dde7689d38bacf72366bd04d4f /solaris/Platform.h | |
parent | 0ada9f325f69ddb0f917f023fa701ce7669cd370 (diff) |
Each platform defines its own long opt macro, prefer printf
Follow up on the two items of feedback from cgzones review,
and resolve a build failure picked up by CI on Mac OS X.
Related to https://github.com/htop-dev/htop/pull/564
Diffstat (limited to 'solaris/Platform.h')
-rw-r--r-- | solaris/Platform.h | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/solaris/Platform.h b/solaris/Platform.h index cabfd5c9..4485cbbf 100644 --- a/solaris/Platform.h +++ b/solaris/Platform.h @@ -26,6 +26,9 @@ in the source distribution for its full text. #include "generic/uname.h" +#define PLATFORM_LONG_OPTIONS +#define PLATFORM_LONG_OPTIONS_USAGE + #define kill(pid, signal) kill(pid / 1024, signal) typedef struct var kvar_t; @@ -89,7 +92,7 @@ static inline void Platform_getRelease(char** string) { *string = Generic_uname(); } -static bool Platform_getLongOption(ATTR_UNUSED int opt, ATTR_UNUSED int argc, ATTR_UNUSED char** argv) { +static inline bool Platform_getLongOption(ATTR_UNUSED int opt, ATTR_UNUSED int argc, ATTR_UNUSED char** argv) { return false; } |