summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-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