From 8563aa8636c37f0b889f3b4b27338691efdeac2b Mon Sep 17 00:00:00 2001 From: Yangfl Date: Thu, 25 Nov 2021 14:05:57 +0800 Subject: [PATCH] Initialise sigaction separately to sa_handler member The sa_handler member is the first member on most platforms but is not the first on MIPS. Fixes: https://bugs.debian.org/987829 --- main.cpp | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/main.cpp b/main.cpp index d010aab..517f914 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); }