VirtualBox

Changeset 77633 in vbox for trunk/src/VBox


Ignore:
Timestamp:
Mar 10, 2019 2:46:32 PM (6 years ago)
Author:
vboxsync
Message:

IPRT: Adding RTFileSgRead and RTFileSgWrite (for FsPerf). [build fixes] bugref:9172

Location:
trunk/src/VBox/Runtime/r3/posix
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/VBox/Runtime/r3/posix/fileio-sg-at-posix.cpp

    r77632 r77633  
    6464# include <sys/uio.h>
    6565# include <unistd.h>
     66# include <limits.h>
     67# if defined(RT_OS_DARWIN) || defined(RT_OS_FREEBSD) || defined(RT_OS_NETBSD) || defined(RT_OS_OPENBSD)
     68#  include <sys/syslimits.h>
     69# endif
    6670
    6771# include "internal/iprt.h"
     
    7377
    7478# ifndef UIO_MAXIOV
    75 #  error "UIO_MAXIOV is undefined"
     79#  ifdef IOV_MAX
     80#   define UIO_MAXIOV IOV_MAX
     81#  else
     82#   error "UIO_MAXIOV and IOV_MAX are undefined"
     83#  endif
    7684# endif
    7785
  • trunk/src/VBox/Runtime/r3/posix/fileio-sg-posix.cpp

    r77632 r77633  
    3434#include <sys/uio.h>
    3535#include <unistd.h>
     36#include <limits.h>
     37#if defined(RT_OS_DARWIN) || defined(RT_OS_FREEBSD) || defined(RT_OS_NETBSD) || defined(RT_OS_OPENBSD)
     38# include <sys/syslimits.h>
     39#endif
    3640
    3741#include "internal/iprt.h"
     
    4347
    4448#ifndef UIO_MAXIOV
    45 # error "UIO_MAXIOV is undefined"
     49# ifdef IOV_MAX
     50#  define UIO_MAXIOV IOV_MAX
     51# else
     52#  error "UIO_MAXIOV and IOV_MAX are undefined"
     53# endif
    4654#endif
    4755
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