Changeset 3232 in MondoRescue for branches/3.2/mindi-busybox/scripts/kconfig/mconf.c
- Timestamp:
- Jan 1, 2014, 12:47:38 AM (10 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/3.2/mindi-busybox/scripts/kconfig/mconf.c
r2859 r3232 8 8 * i18n, 2005, Arnaldo Carvalho de Melo <acme@conectiva.com.br> 9 9 */ 10 11 #define _XOPEN_SOURCE 700 12 /* On Darwin, this may be needed to get SIGWINCH: */ 13 #define _DARWIN_C_SOURCE 1 10 14 11 15 #include <sys/ioctl.h> … … 19 23 #include <stdlib.h> 20 24 #include <string.h> 25 #include <strings.h> /* for strcasecmp */ 21 26 #include <termios.h> 22 27 #include <unistd.h> … … 441 446 pid_t pid; 442 447 448 #ifdef SIGWINCH 443 449 static void winch_handler(int sig) 444 450 { … … 448 454 } 449 455 } 456 #endif 450 457 451 458 static int exec_conf(void) 452 459 { 453 460 int pipefd[2], stat, size; 454 struct sigaction sa;455 461 sigset_t sset, osset; 456 462 … … 461 467 signal(SIGINT, SIG_DFL); 462 468 463 sa.sa_handler = winch_handler; 464 sigemptyset(&sa.sa_mask); 465 sa.sa_flags = SA_RESTART; 466 sigaction(SIGWINCH, &sa, NULL); 469 #ifdef SIGWINCH 470 { 471 struct sigaction sa; 472 sa.sa_handler = winch_handler; 473 sigemptyset(&sa.sa_mask); 474 sa.sa_flags = SA_RESTART; 475 sigaction(SIGWINCH, &sa, NULL); 476 } 477 #endif 467 478 468 479 *argptr++ = NULL;
Note:
See TracChangeset
for help on using the changeset viewer.