VirtualBox

Changeset 2178 in kBuild


Ignore:
Timestamp:
Jan 3, 2009 12:26:23 AM (16 years ago)
Author:
bird
Message:

kmk: windows build fixes.

Location:
trunk/src/kmk
Files:
4 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/kmk/Makefile.kmk

    r2172 r2178  
    184184kmk_DEFS.x86 = CONFIG_WITH_OPTIMIZATION_HACKS
    185185kmk_DEFS.amd64 = CONFIG_WITH_OPTIMIZATION_HACKS
    186 kmk_DEFS.win = CONFIG_NEW_WIN32_CTRL_EVENT
     186kmk_DEFS.win = CONFIG_NEW_WIN32_CTRL_EVENT CONFIG_WITH_FAST_IS_SPACE
    187187kmk_DEFS.debug = CONFIG_WITH_MAKE_STATS
    188188
  • trunk/src/kmk/config.h.win

    r2134 r2178  
    147147
    148148/* Define to 1 if you have the <locale.h> header file. */
    149 /*#define HAVE_LOCALE_H 1*/
     149#define HAVE_LOCALE_H 1
    150150
    151151/* Define to 1 if you have the <mach/mach.h> header file. */
     
    444444
    445445/* Define uintmax_t if not defined in <stdint.h> or <inttypes.h>. */
     446#if 0
    446447#define uintmax_t unsigned long
     448#else
     449#define uintmax_t unsigned __int64
     450#endif
    447451
    448452/* Define as `fork' if `vfork' does not work. */
    449453/*#define vfork fork*/
    450454
     455#if 0/* see above */
    451456/* Define to `unsigned long' or `unsigned long long'
    452457   if <inttypes.h> doesn't define.  */
    453458#define uintmax_t unsigned long
     459#endif
    454460
    455461/* Define if you support file names longer than 14 characters.  */
     
    527533#include "inlined_memchr.h"
    528534
    529 #if 1
     535#ifdef CONFIG_WITH_FAST_IS_SPACE
    530536# include <ctype.h>
    531537# if _MSC_VER >= 1400
  • trunk/src/kmk/kmkbuiltin/mscfakes.h

    r2019 r2178  
    4848
    4949
    50 #define S_ISDIR(m)  (((m) & _S_IFMT) == _S_IFDIR)
    51 #define S_ISREG(m)  (((m) & _S_IFMT) == _S_IFREG)
     50#ifndef S_ISDIR
     51# define S_ISDIR(m) (((m) & _S_IFMT) == _S_IFDIR)
     52#endif
     53#ifndef S_ISREG
     54# define S_ISREG(m) (((m) & _S_IFMT) == _S_IFREG)
     55#endif
    5256#define S_ISLNK(m)  0
    5357#define S_IRWXU (_S_IREAD | _S_IWRITE | _S_IEXEC)
     
    6771#define ALLPERMS 0000777
    6872
    69 #define PATH_MAX _MAX_PATH
     73#undef  PATH_MAX
     74#define PATH_MAX   _MAX_PATH
     75#undef  MAXPATHLEN
    7076#define MAXPATHLEN _MAX_PATH
    7177
     
    8894#define _PATH_DEVNULL "/dev/null"
    8995
    90 #define MAX(a,b) ((a) >= (b) ? (a) : (b))
     96#ifndef MAX
     97# define MAX(a,b) ((a) >= (b) ? (a) : (b))
     98#endif
    9199
    92100typedef int mode_t;
    93101typedef unsigned short nlink_t;
     102#if 0 /* found in config.h */
    94103typedef unsigned short uid_t;
    95104typedef unsigned short gid_t;
     105#endif
    96106typedef long ssize_t;
    97107typedef unsigned long u_long;
     
    114124
    115125typedef __int64 intmax_t;
     126#if 0 /* found in config.h */
    116127typedef unsigned __int64 uintmax_t;
     128#endif
    117129
    118130#define chown(path, uid, gid) 0         /** @todo implement fchmod! */
  • trunk/src/kmk/main.c

    r2103 r2178  
    13111311}
    13121312
    1313 #if defined(set_space_map_entry) /*bird*/
     1313#ifdef CONFIG_WITH_FAST_IS_SPACE /*bird*/
    13141314char space_map[space_map_size];
    1315 #endif /* set_space_map_entry */
     1315#endif /* CONFIG_WITH_FAST_IS_SPACE */
    13161316
    13171317
     
    13411341  no_default_sh_exe = 1;
    13421342#endif
    1343 # if defined(set_space_map_entry) /* bird */
     1343# ifdef CONFIG_WITH_FAST_IS_SPACE /* bird */
    13441344  memset (space_map, '\0', sizeof(space_map));
    13451345  set_space_map_entry (' ');
     
    13491349  set_space_map_entry ('\t');
    13501350  set_space_map_entry ('\v');
    1351 # endif
     1351# endif /* CONFIG_WITH_FAST_IS_SPACE */
    13521352
    13531353#ifdef CONFIG_WITH_PRINT_TIME_SWITCH
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