VirtualBox

Changeset 53665 in vbox for trunk


Ignore:
Timestamp:
Jan 2, 2015 12:32:39 PM (10 years ago)
Author:
vboxsync
Message:

VBoxDTrace: build on darwin. (r42)

Location:
trunk/src/VBox/ExtPacks/VBoxDTrace
Files:
5 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/VBox/ExtPacks/VBoxDTrace/VBoxDTraceR0/VBoxDTraceR0A.asm

    r53645 r53665  
    3939
    4040GLOBALNAME dtrace_probe6
    41     jmp     dtrace_probe
     41    jmp     NAME(dtrace_probe)
    4242
    4343
  • trunk/src/VBox/ExtPacks/VBoxDTrace/include/VBoxDTraceTypes.h

    r53664 r53665  
    7070#undef PATH_MAX
    7171#define PATH_MAX                    RTPATH_MAX
     72#undef NBBY
    7273#define NBBY                        (8)
    7374#define NCPU                        RTCPUSET_MAX_CPUS
  • trunk/src/VBox/ExtPacks/VBoxDTrace/onnv/lib/libdtrace/common/dt_cc.c

    r53655 r53665  
    101101# ifdef _MSC_VER
    102102#  include <io.h>
    103 #  define ftruncate64   _chsize
    104 #  define lseek64       lseek
    105103# else
    106104#  include <unistd.h>
     105# endif
     106# if defined(RT_OS_WINDOWS) || defined(RT_OS_DARWIN)
     107#  ifdef _MSC_VER
     108#   define ftruncate64  _chsize
     109#  else
     110#   define ftruncate64  ftruncate
     111#  endif
     112#  define lseek64       lseek
    107113# endif
    108114#endif /* VBOX */
  • trunk/src/VBox/ExtPacks/VBoxDTrace/onnv/lib/libdtrace/common/dt_options.c

    r53653 r53665  
    4646#  include <unistd.h>
    4747#  include <signal.h>
     48#  if defined(RT_OS_DARWIN)
     49#   define open64 open
     50#  endif
    4851# else
    4952#  include <io.h>
  • trunk/src/VBox/ExtPacks/VBoxDTrace/onnv/uts/common/dtrace/dtrace.c

    r53664 r53665  
    87808780dtrace_difo_chunksize(dtrace_difo_t *dp, dtrace_vstate_t *vstate)
    87818781{
    8782         uint64_t sval;
     8782        uint64_t sval VBDTGCC(0);
    87838783        dtrace_key_t tupregs[DIF_DTR_NREGS + 2]; /* +2 for thread and id */
    87848784        const dif_instr_t *text = dp->dtdo_buf;
     
    87948794                uint_t r1 = DIF_INSTR_R1(instr);
    87958795                uint_t nkeys = 0;
    8796                 uchar_t scope;
     8796                uchar_t scope VBDTGCC(0);
    87978797
    87988798                dtrace_key_t *key = tupregs;
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