summaryrefslogtreecommitdiffstats
path: root/darwin
diff options
context:
space:
mode:
authorNathan Scott <nathans@redhat.com>2021-03-17 14:29:40 +1100
committerNathan Scott <nathans@redhat.com>2021-03-22 17:16:40 +1100
commit0ada9f325f69ddb0f917f023fa701ce7669cd370 (patch)
tree893a7f51aa87f25c965d4582587f771d95ba4b97 /darwin
parent57e0ce7b4ffce8cf41bd3003831198d0bb38ebf2 (diff)
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
Diffstat (limited to 'darwin')
-rw-r--r--darwin/Platform.h4
1 files changed, 4 insertions, 0 deletions
diff --git a/darwin/Platform.h b/darwin/Platform.h
index 4b2e75f4..ea0c8197 100644
--- a/darwin/Platform.h
+++ b/darwin/Platform.h
@@ -77,4 +77,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

© 2014-2024 Faster IT GmbH | imprint | privacy policy