VirtualBox

Changeset 1246 in kBuild for trunk/src/kmk


Ignore:
Timestamp:
Oct 15, 2007 4:54:59 PM (17 years ago)
Author:
bird
Message:

Solaris build fixes.

Location:
trunk/src/kmk/kmkbuiltin
Files:
4 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/kmk/kmkbuiltin/cmp.c

    r1183 r1246  
    6565#endif
    6666#include <locale.h>
     67#include "getopt.h"
    6768
    6869#ifndef O_BINARY
  • trunk/src/kmk/kmkbuiltin/cp.c

    r1194 r1246  
    7272#include <string.h>
    7373#include <unistd.h>
     74#include "getopt.h"
    7475
    7576#ifdef _MSC_VER
     
    610611                                "   or: %s --version\n",
    611612                        g_progname, g_progname, g_progname, g_progname);
    612         return EX_USAGE;
     613        return 1;
    613614}
  • trunk/src/kmk/kmkbuiltin/solfakes.c

    r960 r1246  
    2727#include <stdarg.h>
    2828#include <stdlib.h>
    29 #ifdef __sun__
    30 # undef va_copy /* why? */
    31 #endif
    3229#include "solfakes.h"
    3330
     
    6259        va_copy(va2, va);
    6360        rc = snprintf(psz, cb, fmt, va2);
    64         va_end(vaCopy);
     61        va_end(va2);
    6562#else
    6663        va2 = va;
  • trunk/src/kmk/kmkbuiltin/solfakes.h

    r813 r1246  
    2727#ifdef __sun__
    2828
     29#include <stdarg.h>
    2930#include "getopt.h"
    3031#define _PATH_DEVNULL "/dev/null"
     
    3738#endif
    3839
     40int vasprintf(char **strp, const char *fmt, va_list va);
     41int asprintf(char **strp, const char *fmt, ...);
     42
    3943#endif /* __sun__ */
    4044#endif /* __solfakes_h__ */
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