VirtualBox

Changeset 3237 in kBuild


Ignore:
Timestamp:
Dec 25, 2018 4:11:26 AM (6 years ago)
Author:
bird
Message:

kmk: linux build fixing...

Location:
trunk/src/kmk
Files:
3 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/kmk/kmkbuiltin.h

    r3224 r3237  
    3535#endif
    3636#include <fcntl.h>
     37#ifdef HAVE_STDINT_H
     38# include <stdint.h>
     39#endif
    3740
    3841/* For the GNU/hurd weirdo. */
  • trunk/src/kmk/kmkbuiltin/err.c

    r3192 r3237  
    2929#ifdef HAVE_CONFIG_H
    3030# include "config.h"
     31# ifdef HAVE_STDLIB_H
     32#  include <stdlib.h>
     33# endif
     34# ifdef HAVE_STDINT_H
     35#  include <stdint.h>
     36# endif
    3137#else
    3238# include <stdlib.h>
  • trunk/src/kmk/kmkbuiltin/redirect.c

    r3210 r3237  
    3333#include <assert.h>
    3434#include <stdio.h>
     35#include <stdarg.h>
    3536#include <stdlib.h>
    3637#include <string.h>
     
    422423}
    423424
     425#if !defined(USE_POSIX_SPAWN) && !defined(KBUILD_OS_WINDOWS)
    424426
    425427/**
     
    454456}
    455457
    456 #if !defined(USE_POSIX_SPAWN) && !defined(KBUILD_OS_WINDOWS)
    457458
    458459/**
     
    12911292                    for (;;)
    12921293                    {
    1293                         pid_t pid = waitpid(pidChild, &rcExit, 0 /*block*/);
     1294                        int rcExitRaw = 1;
     1295                        pid_t pid = waitpid(pidChild, &rcExitRaw, 0 /*block*/);
    12941296                        if (pid == pidChild)
    12951297                        {
     1298                            rcExit = WIFEXITED(rcExitRaw) ? WEXITSTATUS(rcExitRaw) : 63;
    12961299                            if (cVerbosity > 0)
    1297                                 warnx(pCtx, "debug: %d exit code: %d", pidChild, rcExit);
     1300                                warnx(pCtx, "debug: %d exit code: %d (%d)", pidChild, rcExit, rcExitRaw);
    12981301                            break;
    12991302                        }
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