VirtualBox

Changeset 1023 in vbox


Ignore:
Timestamp:
Feb 22, 2007 10:14:29 AM (18 years ago)
Author:
vboxsync
svn:sync-xref-src-repo-rev:
18880
Message:

make slirp compile on win boxes again

Location:
trunk/src/VBox/Devices/Network/slirp
Files:
3 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/VBox/Devices/Network/slirp/bootp.c

    r1020 r1023  
    221221
    222222    if (bootp_filename)
     223#ifndef VBOX
    223224        snprintf((char*)rbp->bp_file, sizeof(rbp->bp_file), "%s", bootp_filename);
     225#else
     226        RTStrPrintf((char*)rbp->bp_file, sizeof(rbp->bp_file), "%s", bootp_filename);
     227#endif
    224228
    225229#ifdef VBOX
  • trunk/src/VBox/Devices/Network/slirp/slirp.h

    r817 r1023  
    3737#  include <io.h>
    3838# endif
     39# include <iprt/string.h>
    3940# include <VBox/types.h>
    4041
  • trunk/src/VBox/Devices/Network/slirp/tftp.c

    r1016 r1023  
    106106  int n;
    107107
     108#ifndef VBOX
    108109  n = snprintf(buffer, sizeof(buffer), "%s/%s",
    109110               tftp_prefix, spt->filename);
     111#else
     112  n = RTStrPrintf(buffer, sizeof(buffer), "%s/%s",
     113               tftp_prefix, spt->filename);
     114#endif
    110115  if (n >= sizeof(buffer))
    111116    return -1;
     
    382387              int len;
    383388
     389#ifndef VBOX
    384390              len = snprintf(buffer, sizeof(buffer), "%s/%s",
    385391                             tftp_prefix, spt->filename);
     392#else
     393              len = RTStrPrintf(buffer, sizeof(buffer), "%s/%s",
     394                             tftp_prefix, spt->filename);
     395#endif
    386396
    387397              if (stat(buffer, &stat_p) == 0)
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