Ignore:
Timestamp:
Jan 1, 2014, 12:47:38 AM (10 years ago)
Author:
Bruno Cornec
Message:
  • Update mindi-busybox to 1.21.1
File:
1 edited

Legend:

Unmodified
Added
Removed
  • branches/3.2/mindi-busybox/scripts/kconfig/mconf.c

    r2859 r3232  
    88 * i18n, 2005, Arnaldo Carvalho de Melo <acme@conectiva.com.br>
    99 */
     10
     11#define _XOPEN_SOURCE 700
     12/* On Darwin, this may be needed to get SIGWINCH: */
     13#define _DARWIN_C_SOURCE 1
    1014
    1115#include <sys/ioctl.h>
     
    1923#include <stdlib.h>
    2024#include <string.h>
     25#include <strings.h> /* for strcasecmp */
    2126#include <termios.h>
    2227#include <unistd.h>
     
    441446pid_t pid;
    442447
     448#ifdef SIGWINCH
    443449static void winch_handler(int sig)
    444450{
     
    448454    }
    449455}
     456#endif
    450457
    451458static int exec_conf(void)
    452459{
    453460    int pipefd[2], stat, size;
    454     struct sigaction sa;
    455461    sigset_t sset, osset;
    456462
     
    461467    signal(SIGINT, SIG_DFL);
    462468
    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
    467478
    468479    *argptr++ = NULL;
Note: See TracChangeset for help on using the changeset viewer.