From 253ff23f9e3a26c9575758fd1849b457c5d4d635 Mon Sep 17 00:00:00 2001 From: Nathan Scott Date: Mon, 22 Mar 2021 14:49:07 +1100 Subject: Use a platform-specific routine for long option usage Related to https://github.com/htop-dev/htop/pull/564 --- dragonflybsd/Platform.h | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) (limited to 'dragonflybsd') diff --git a/dragonflybsd/Platform.h b/dragonflybsd/Platform.h index 9ddcbc70..993768be 100644 --- a/dragonflybsd/Platform.h +++ b/dragonflybsd/Platform.h @@ -21,9 +21,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[]; extern const SignalItem Platform_signals[]; @@ -70,6 +67,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; } -- cgit v1.2.3