summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorDaniel Lange <DLange@git.local>2022-05-06 15:11:02 +0200
committerBenBE <BenBE@geshi.org>2022-05-06 15:22:08 +0200
commit79db69c48da9c4ffa514e060d893da5ec401107b (patch)
treede5707383dc8cb4af4456f9e80ff6e4d5f14af99
parent9fc72c1e9c07f06bc3ca33d538e06a894778992d (diff)
Fix Solaris / OmniOS build
-rw-r--r--SignalsPanel.c2
-rw-r--r--SignalsPanel.h4
2 files changed, 5 insertions, 1 deletions
diff --git a/SignalsPanel.c b/SignalsPanel.c
index cb71130f..7e21ce93 100644
--- a/SignalsPanel.c
+++ b/SignalsPanel.c
@@ -6,8 +6,8 @@ in the source distribution for its full text.
*/
#include "SignalsPanel.h"
+// the above contains #include <signal.h> so do not add that here again (breaks Solaris build)
-#include <signal.h>
#include <stdbool.h>
#include "FunctionBar.h"
diff --git a/SignalsPanel.h b/SignalsPanel.h
index 7b9303fe..529043a1 100644
--- a/SignalsPanel.h
+++ b/SignalsPanel.h
@@ -7,7 +7,11 @@ Released under the GNU GPLv2+, see the COPYING file
in the source distribution for its full text.
*/
+#include "config.h" // IWYU pragma: keep
+
+#ifndef HTOP_SOLARIS
#include <signal.h>
+#endif
#include "Panel.h"

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