Better ifdefs for sendfile on OS/X.
This commit is contained in:
parent
c39c4f503f
commit
3433c4d2c1
@ -26,11 +26,14 @@
|
||||
#ifdef __FreeBSD__
|
||||
#include <sys/uio.h>
|
||||
#else
|
||||
#if defined(__APPLE__) && defined(__MACH__) && defined(MAC_OS_X_VERSION_10_6) /* OS X */
|
||||
#if defined(__APPLE__) && defined(__MACH__) /* OS X */
|
||||
#include <AvailabilityMacros.h>
|
||||
#if defined(MAC_OS_X_VERSION_10_6)
|
||||
#include <sys/uio.h>
|
||||
#endif
|
||||
#endif
|
||||
#endif
|
||||
#endif
|
||||
|
||||
#include "iperf_util.h"
|
||||
#include "net.h"
|
||||
|
Loading…
Reference in New Issue
Block a user