diff options
author | Denys Vlasenko <vda.linux@googlemail.com> | 2012-09-27 15:26:40 +0200 |
---|---|---|
committer | Denys Vlasenko <vda.linux@googlemail.com> | 2012-09-27 15:26:40 +0200 |
commit | 225cc1327a9a3786d0c5317ea1a8342f8c04f0d8 (patch) | |
tree | 8381ef0e567df8e46f1cdd2ef7dc5de6ad245734 /scripts | |
parent | c4f2d997a40025657de9a9cbf3c963b080d702fb (diff) | |
download | busybox-225cc1327a9a3786d0c5317ea1a8342f8c04f0d8.tar.gz |
scripts/kconfig/mconf: work on systems w/o SIGWINCH
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
Diffstat (limited to 'scripts')
-rw-r--r-- | scripts/kconfig/mconf.c | 16 |
1 files changed, 11 insertions, 5 deletions
diff --git a/scripts/kconfig/mconf.c b/scripts/kconfig/mconf.c index 1b0b6ab07..006d03708 100644 --- a/scripts/kconfig/mconf.c +++ b/scripts/kconfig/mconf.c @@ -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; |