Ignore:
Timestamp:
Nov 26, 2006, 1:24:22 PM (19 years ago)
Author:
bird
Message:

Made it build on linux.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/ash/bltin/kill.c

    r626 r630  
    5656#include <sys/ioctl.h>
    5757
     58#ifndef HAVE_SYS_SIGNAME
     59extern void init_sys_signame(void);
     60extern char sys_signame[NSIG][16];
     61#endif
     62
    5863#ifdef SHELL            /* sh (aka ash) builtin */
    5964#define main killcmd
     
    98103                        if (numsig <= 0 || numsig >= NSIG)
    99104                                nosig(*argv);
     105#ifndef HAVE_SYS_SIGNAME
     106                        init_sys_signame();
     107#endif
    100108                        printf("%s\n", sys_signame[numsig]);
    101109                        exit(0);
     
    179187{
    180188        int n;
    181 
     189#ifndef HAVE_SYS_SIGNAME
     190        init_sys_signame();
     191#endif
    182192        if (strncasecmp(sig, "sig", 3) == 0)
    183193                sig += 3;
     
    216226#warning TIOCGWINSZ is not present.
    217227#endif
     228#ifndef HAVE_SYS_SIGNAME
     229    init_sys_signame();
     230#endif
    218231
    219232        for (len = 0, sig = 1; sig < NSIG; sig++) {
Note: See TracChangeset for help on using the changeset viewer.