diff options
Diffstat (limited to 'ace/OS_NS_sys_mman.inl')
-rw-r--r-- | ace/OS_NS_sys_mman.inl | 9 |
1 files changed, 8 insertions, 1 deletions
diff --git a/ace/OS_NS_sys_mman.inl b/ace/OS_NS_sys_mman.inl index 9592d4c4dfa..1e3006e259a 100644 --- a/ace/OS_NS_sys_mman.inl +++ b/ace/OS_NS_sys_mman.inl @@ -6,6 +6,7 @@ #include "ace/OS_NS_stdio.h" #include "ace/OS_NS_macros.h" #include "ace/OS_NS_errno.h" +#include "ace/os_include/sys/os_mman.h" #if defined (__Lynx__) # include "ace/OS_NS_sys_stat.h" @@ -22,7 +23,13 @@ ACE_INLINE int ACE_OS::madvise (caddr_t addr, size_t len, int map_advice) { ACE_OS_TRACE ("ACE_OS::madvise"); -#if !defined (ACE_LACKS_MADVISE) +#if defined (ACE_WIN32) + ACE_UNUSED_ARG (addr); + ACE_UNUSED_ARG (len); + ACE_UNUSED_ARG (map_advice); + + ACE_NOTSUP_RETURN (-1); +#elif !defined (ACE_LACKS_MADVISE) ACE_OSCALL_RETURN (::madvise (addr, len, map_advice), int, -1); #else ACE_UNUSED_ARG (addr); |