diff options
author | Nathan Scott <nathans@redhat.com> | 2021-03-22 14:49:07 +1100 |
---|---|---|
committer | Nathan Scott <nathans@redhat.com> | 2021-03-22 17:16:40 +1100 |
commit | 253ff23f9e3a26c9575758fd1849b457c5d4d635 (patch) | |
tree | b756365fd3c197fc568b9ff68653bda0d2b0e0f3 /openbsd | |
parent | d56d23d91adf3fad512e5311fcdd0ca129e820c7 (diff) |
Use a platform-specific routine for long option usage
Related to https://github.com/htop-dev/htop/pull/564
Diffstat (limited to 'openbsd')
-rw-r--r-- | openbsd/Platform.h | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/openbsd/Platform.h b/openbsd/Platform.h index c4add09f..f54b0509 100644 --- a/openbsd/Platform.h +++ b/openbsd/Platform.h @@ -23,9 +23,6 @@ in the source distribution for its full text. #include "generic/uname.h" -#define PLATFORM_LONG_OPTIONS -#define PLATFORM_LONG_OPTIONS_USAGE - extern const ProcessField Platform_defaultFields[]; /* see /usr/include/sys/signal.h */ @@ -73,6 +70,10 @@ static inline void Platform_getRelease(char** string) { *string = Generic_uname(); } +#define PLATFORM_LONG_OPTIONS + +static inline void Platform_longOptionsUsage(ATTR_UNUSED const char* name) { } + static inline bool Platform_getLongOption(ATTR_UNUSED int opt, ATTR_UNUSED int argc, ATTR_UNUSED char** argv) { return false; } |