← Commit list

225cc1327

Denys Vlasenko
Denys Vlasenko
2012-09-27
SUCCESS Duration: 177s

Subject

scripts/kconfig/mconf: work on systems w/o SIGWINCH

Binary

No binary (build failed)

Architecture & Compiler Flags

Architecture: x86_64-linux-gnu Compiler: gcc (Ubuntu 11.4.0-1ubuntu1~22.04.3) 11.4.0

—

Build Log

(log yok)

Commit Diff GitHub →

scripts/kconfig/mconf.c+11 -5
@@ -445,6 +445,7 @@ static struct gstr get_relations_str(struct symbol **sym_arr)
pid_t pid;
+#ifdef SIGWINCH
static void winch_handler(int sig)
{
if (!do_resize) {
@@ -452,11 +453,11 @@ static void winch_handler(int sig)
do_resize = 1;
}
}
+#endif
static int exec_conf(void)
{
int pipefd[2], stat, size;
- struct sigaction sa;
sigset_t sset, osset;
sigemptyset(&sset);
@@ -465,10 +466,15 @@ static int exec_conf(void)
signal(SIGINT, SIG_DFL);
- sa.sa_handler = winch_handler;
- sigemptyset(&sa.sa_mask);
- sa.sa_flags = SA_RESTART;
- sigaction(SIGWINCH, &sa, NULL);
+#ifdef SIGWINCH
+ {
+ struct sigaction sa;
+ sa.sa_handler = winch_handler;
+ sigemptyset(&sa.sa_mask);
+ sa.sa_flags = SA_RESTART;
+ sigaction(SIGWINCH, &sa, NULL);
+ }
+#endif
*argptr++ = NULL;