VirtualBox

Changeset 803 in kBuild


Ignore:
Timestamp:
Jan 25, 2007 12:49:28 AM (18 years ago)
Author:
bird
Message:

msvcrt build.

Location:
trunk/src/gmake
Files:
6 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/gmake/glob/fnmatch.c

    r503 r803  
    120120   whose names are inconsistent.  */
    121121
    122 # if !defined _LIBC && !defined getenv
     122# if !defined _LIBC && !defined getenv && !defined _MSC_VER
    123123extern char *getenv ();
    124124# endif
  • trunk/src/gmake/glob/glob.c

    r507 r803  
    188188# ifndef __SASC
    189189#  ifdef WINDOWS32
     190#   include <malloc.h>
    190191static void *
    191192my_realloc (void *p, unsigned int n)
  • trunk/src/gmake/job.c

    r751 r803  
    180180
    181181#ifndef HAVE_UNISTD_H
     182# ifndef _MSC_VER
    182183extern int dup2 ();
    183184extern int execve ();
    184185extern void _exit ();
     186# endif
    185187# ifndef VMS
    186188extern int geteuid ();
     
    574576# else
    575577              status = (WAIT_T)completed_child->status;
    576 # endif 
     578# endif
    577579            }
    578580          else
     
    763765          if (!dontcare)
    764766#ifdef KMK
    765             { 
     767            {
    766768              child_error (c->file->name, exit_code, exit_sig, coredump, 0);
    767769              if ((  c->file->cmds->lines_flags[c->command_line - 1]
     
    772774#else
    773775            child_error (c->file->name, exit_code, exit_sig, coredump, 0);
    774 #endif 
     776#endif
    775777
    776778          c->file->update_status = 2;
     
    10721074#else
    10731075    |= flags & COMMANDS_RECURSE;
    1074 #endif 
     1076#endif
    10751077
    10761078  /* Figure out an argument list from this command line.  */
     
    15401542  if (c->file->command_flags & COMMANDS_NOTPARALLEL)
    15411543    {
    1542       DB (DB_KMK, (_("not_parallel %d -> %d (file=%p `%s') [start_waiting_job]\n"), 
     1544      DB (DB_KMK, (_("not_parallel %d -> %d (file=%p `%s') [start_waiting_job]\n"),
    15431545                   not_parallel, not_parallel + 1, c->file, c->file->name));
    15441546      assert(not_parallel >= 0);
     
    15491551  /* If we are running at least one job already and the load average
    15501552     is too high, make this one wait.  */
    1551   if (!c->remote 
     1553  if (!c->remote
    15521554#ifdef CONFIG_WITH_EXTENDED_NOTPARALLEL
    15531555      && ((job_slots_used > 0 && (not_parallel > 0 || load_too_high ()))
     
    18881890  else if (not_parallel > 0)
    18891891    {
    1890       /* wait for all live children to finish and then continue 
     1892      /* wait for all live children to finish and then continue
    18911893         with the not-parallel child(s). FIXME: this loop could be better? */
    18921894      while (file->command_state == cs_running
     
    20482050#ifdef CONFIG_WITH_EXTENDED_NOTPARALLEL
    20492051      /* If it's a not-parallel job, we've already counted it once
    2050          when it was queued in start_waiting_job, so decrement 
     2052         when it was queued in start_waiting_job, so decrement
    20512053         before sending it to  start_waiting_job again. */
    20522054      if (job->file->command_flags & COMMANDS_NOTPARALLEL)
    20532055        {
    2054           DB (DB_KMK, (_("not_parallel %d -> %d (file=%p `%s') [start_waiting_jobs]\n"), 
     2056          DB (DB_KMK, (_("not_parallel %d -> %d (file=%p `%s') [start_waiting_jobs]\n"),
    20552057                       not_parallel, not_parallel - 1, job->file, job->file->name));
    20562058          assert(not_parallel > 0);
     
    29262928#ifdef KMK /* see test in Makefile.kmk, required on windows. */
    29272929                if (!batch_mode_shell)
    2928 #endif 
     2930#endif
    29292931                *(ap++) = '\\';
    29302932                *(ap++) = '\n';
     
    32313233
    32323234#ifdef CONFIG_WITH_KMK_BUILTIN
    3233   /* If it's a kmk_builtin command, make sure we're treated like a 
     3235  /* If it's a kmk_builtin command, make sure we're treated like a
    32343236     unix shell and and don't get batch files. */
    3235   if (   (  !unixy_shell 
     3237  if (   (  !unixy_shell
    32363238          || batch_mode_shell
    32373239# ifdef WINDOWS32
    32383240          || no_default_sh_exe
    3239 # endif 
     3241# endif
    32403242         )
    32413243      && !strncmp(line, "kmk_builtin_", sizeof("kmk_builtin_") - 1))
     
    32463248    int saved_no_default_sh_exe = no_default_sh_exe;
    32473249    no_default_sh_exe = 0;
    3248 # endif 
     3250# endif
    32493251    unixy_shell = 1;
    32503252    batch_mode_shell = 0;
  • trunk/src/gmake/kmkbuiltin.c

    r785 r803  
    3535#include "kmkbuiltin.h"
    3636
     37#ifndef _MSC_VER
    3738extern char **environ;
     39#endif
    3840
    3941int kmk_builtin_command(const char *pszCmd)
  • trunk/src/gmake/main.c

    r783 r803  
    7272#endif
    7373
    74 #ifndef HAVE_UNISTD_H
     74#if !defined(HAVE_UNISTD_H) && !defined(_MSC_VER)
    7575extern int chdir ();
    7676#endif
     
    10051005#endif
    10061006
     1007#ifndef _MSC_VER
    10071008extern char *mktemp PARAMS ((char *template));
     1009#endif
    10081010extern int mkstemp PARAMS ((char *template));
    10091011
  • trunk/src/gmake/make.h

    r591 r803  
    494494
    495495#ifdef  HAVE_GETCWD
    496 # if !defined(VMS) && !defined(__DECC)
     496# if !defined(VMS) && !defined(__DECC) && !defined(_MSC_VER)
    497497extern char *getcwd ();
    498498# endif
     
    505505extern const struct floc **expanding_var;
    506506
     507#if !defined(_MSC_VER)
    507508extern char **environ;
     509#endif
    508510
    509511extern int just_print_flag, silent_flag, ignore_errors_flag, keep_going_flag;
Note: See TracChangeset for help on using the changeset viewer.

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