VirtualBox

Changeset 2145 in kBuild for trunk/src


Ignore:
Timestamp:
Dec 26, 2008 12:54:01 PM (16 years ago)
Author:
bird
Message:

kmk: use our fts everywhere.

Location:
trunk/src/kmk
Files:
3 edited

Legend:

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

    r2141 r2145  
    3838        KBUILD_SVN_REV=$(KBUILD_SVN_REV) \
    3939        KBUILD_TYPE=\"$(KBUILD_TYPE)\"
    40 TEMPLATE_BIN-KMK_DEPS = $(PATH_kmk)/config.h
     40TEMPLATE_BIN-KMK_DEPS = \
     41        $(PATH_kmk)/config.h \
     42        $(PATH_kmk)/fts.h
    4143TEMPLATE_BIN-KMK_CLEAN = $(TEMPLATE_BIN-KMK_DEPS)
    4244TEMPLATE_BIN-KMK_DEPS.solaris = \
    43         $(PATH_kmk)/fts.h \
    4445        $(PATH_kmk)/paths.h
    4546TEMPLATE_BIN-KMK_CLEAN.solaris = $(TEMPLATE_BIN-KMK_DEPS.solaris)
    4647TEMPLATE_BIN-KMK_DEPS.win     = \
    47         $(PATH_kmk)/fts.h \
    4848        $(PATH_kmk)/sysexits.h \
    4949        $(PATH_kmk)/unistd.h \
     
    7979kmkmissing_SOURCES = \
    8080        kmkbuiltin/err.c \
     81        kmkbuiltin/fts.c \
    8182        kmkbuiltin/setmode.c \
    8283        kmkbuiltin/strmode.c \
     
    106107        kmkbuiltin/strlcpy.c \
    107108        kmkbuiltin/solfakes.c \
    108         kmkbuiltin/fts.c \
    109109        glob/glob.c \
    110110        glob/fnmatch.c
     
    113113        kmkbuiltin/strlcpy.c \
    114114        kmkbuiltin/mscfakes.c \
    115         kmkbuiltin/fts.c \
    116115        glob/glob.c \
    117116        glob/fnmatch.c \
  • trunk/src/kmk/config.h.darwin

    r2134 r2145  
    287287
    288288/* Build host information. (not used by kmk) */
    289 #define MAKE_HOST "i686-apple-darwin8.8.1"
     289#define MAKE_HOST "i386-apple-darwin9.4.0"
    290290
    291291/* Define to 1 to enable job server support in GNU make. */
     
    427427
    428428#include "inlined_memchr.h"
    429 
  • trunk/src/kmk/kmkbuiltin/ftsfake.h

    r809 r2145  
    142142} FTSENT;
    143143
    144 #ifndef __sun__
    145 #ifndef _MSC_VER
    146 #include <sys/cdefs.h>
    147 __BEGIN_DECLS
    148 #else
    149 #define __RENAME(a)
    150 #endif
     144#ifdef __cplusplus
     145extern "C" {
    151146#endif
    152147
    153 #if defined(__LIBC12_SOURCE__) || defined(__sun__)
    154148FTSENT  *fts_children(FTS *, int);
    155149int      fts_close(FTS *);
     
    158152FTSENT  *fts_read(FTS *);
    159153int      fts_set(FTS *, FTSENT *, int);
    160 #else
    161 FTSENT  *fts_children(FTS *, int)               __RENAME(__fts_children13);
    162 int      fts_close(FTS *)                       __RENAME(__fts_close13);
    163 FTS     *fts_open(char * const *, int,
    164             int (*)(const FTSENT **, const FTSENT **))
    165                                                 __RENAME(__fts_open13);
    166 FTSENT  *fts_read(FTS *)                        __RENAME(__fts_read13);
    167 int      fts_set(FTS *, FTSENT *, int)  __RENAME(__fts_set13);
    168 #endif
    169154
    170 #ifndef __sun__
    171 #ifndef _MSC_VER
    172 __END_DECLS
    173 #endif
     155#ifdef __cplusplus
     156}
    174157#endif
    175158
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