diff options
Diffstat (limited to 'ace/OS_NS_sys_sendfile.inl')
-rw-r--r-- | ace/OS_NS_sys_sendfile.inl | 8 |
1 files changed, 6 insertions, 2 deletions
diff --git a/ace/OS_NS_sys_sendfile.inl b/ace/OS_NS_sys_sendfile.inl index 3a1a03b32da..1c468354b3e 100644 --- a/ace/OS_NS_sys_sendfile.inl +++ b/ace/OS_NS_sys_sendfile.inl @@ -2,16 +2,20 @@ // // $Id$ +#ifdef ACE_HAS_SENDFILE +# include <sys/sendfile.h> +#endif /* ACE_HAS_SENDFILE */ + ACE_BEGIN_VERSIONED_NAMESPACE_DECL ACE_INLINE ssize_t ACE_OS::sendfile (ACE_HANDLE out_fd, ACE_HANDLE in_fd, - ACE_LOFF_T * offset, + off_t * offset, size_t count) { #ifdef ACE_HAS_SENDFILE - return sendfile (out_fd, in_fd, offset, count); + return ::sendfile (out_fd, in_fd, offset, count); #else return ACE_OS::sendfile_emulation (out_fd, in_fd, offset, count); #endif /* ACE_HAS_SENDFILE */ |