VirtualBox

Changeset 630 in kBuild for trunk/src/ash/bltin


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

Made it build on linux.

Location:
trunk/src/ash/bltin
Files:
2 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++) {
  • trunk/src/ash/bltin/test.c

    r626 r630  
    190190        int res;
    191191
     192#ifdef HAVE_SETPROGNAME
    192193        setprogname(argv[0]);
     194#endif
    193195        if (strcmp(argv[0], "[") == 0) {
    194196                if (strcmp(argv[--argc], "]"))
Note: See TracChangeset for help on using the changeset viewer.

© 2024 Oracle Support Privacy / Do Not Sell My Info Terms of Use Trademark Policy Automated Access Etiquette