Source: crazydiskinfo
Tags: patch
Severity: minor

Hi,

crazydiskinfo FTBFS on mips, because a struct `sigaction' is
initialized tag-less, while on mips the first member happens to be
different from that on other architectures.

Please consider applying this patch to fix this problem.
diff --git a/main.cpp b/main.cpp
index 7dcdf05..9172521 100644
--- a/main.cpp
+++ b/main.cpp
@@ -507,7 +507,8 @@ int main()
 	update();
 
 	{
-		struct sigaction s = {{actionWINCH}};
+		struct sigaction s = {0};
+		s.sa_handler = actionWINCH;
 		sigaction(SIGWINCH, &s, nullptr);
 	}
 

Reply via email to