From 0ada9f325f69ddb0f917f023fa701ce7669cd370 Mon Sep 17 00:00:00 2001 From: Nathan Scott Date: Wed, 17 Mar 2021 14:29:40 +1100 Subject: Move libcap use to (Linux) platform-specific code The libcap code is Linux-specific so move it all below the linux/ platform subdirectory. As this feature has custom command-line long options I provide a mechanism whereby each platform can add custom long options that augment the main htop options. We'll make use this of this with the pcp/ platform in due course to implement the --host and --archive options there. Related to https://github.com/htop-dev/htop/pull/536 --- dragonflybsd/Platform.h | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'dragonflybsd') diff --git a/dragonflybsd/Platform.h b/dragonflybsd/Platform.h index 2cac44df..213936cc 100644 --- a/dragonflybsd/Platform.h +++ b/dragonflybsd/Platform.h @@ -67,4 +67,8 @@ 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) { + return false; +} + #endif -- cgit v1.2.3