summaryrefslogtreecommitdiff
path: root/ace/OS_NS_sys_sendfile.h
diff options
context:
space:
mode:
Diffstat (limited to 'ace/OS_NS_sys_sendfile.h')
-rw-r--r--ace/OS_NS_sys_sendfile.h5
1 files changed, 3 insertions, 2 deletions
diff --git a/ace/OS_NS_sys_sendfile.h b/ace/OS_NS_sys_sendfile.h
index a7983dadec9..03112b058e5 100644
--- a/ace/OS_NS_sys_sendfile.h
+++ b/ace/OS_NS_sys_sendfile.h
@@ -22,6 +22,7 @@
#endif /* ACE_LACKS_PRAGMA_ONCE */
#include "ace/Basic_Types.h" /* For ssize_t and off_t. */
+#include "ace/config-all.h"
#if defined (ACE_EXPORT_MACRO)
# undef ACE_EXPORT_MACRO
@@ -40,13 +41,13 @@ namespace ACE_OS
off_t * offset,
size_t count);
-#ifndef ACE_HAS_SENDFILE
+#if defined ACE_HAS_SENDFILE && ACE_HAS_SENDFILE == 0
extern ACE_Export
ssize_t sendfile_emulation (ACE_HANDLE out_fd,
ACE_HANDLE in_fd,
off_t * offset,
size_t count);
-#endif /* !ACE_HAS_SENDFILE */
+#endif /* ACE_HAS_SENDFILE==0 */
}