summaryrefslogtreecommitdiff
path: root/ace/Memory_Pool.cpp
diff options
context:
space:
mode:
authorspark <spark@ae88bc3d-4319-0410-8dbf-d08b4c9d3795>2002-03-08 23:16:29 +0000
committerspark <spark@ae88bc3d-4319-0410-8dbf-d08b4c9d3795>2002-03-08 23:16:29 +0000
commitfc513cf9c3ded9c9bbebc0148e9c8fdaa2d32842 (patch)
tree2d408d9881dd08c0ab0f4fedc25ecb5a9b982be1 /ace/Memory_Pool.cpp
parentd8b169877e2ea906b1349b65d7ca3e809290a4d2 (diff)
downloadATCD-fc513cf9c3ded9c9bbebc0148e9c8fdaa2d32842.tar.gz
Updated for the WinCE port.
Diffstat (limited to 'ace/Memory_Pool.cpp')
-rw-r--r--ace/Memory_Pool.cpp7
1 files changed, 6 insertions, 1 deletions
diff --git a/ace/Memory_Pool.cpp b/ace/Memory_Pool.cpp
index 9ec2fe66821..526a585891a 100644
--- a/ace/Memory_Pool.cpp
+++ b/ace/Memory_Pool.cpp
@@ -300,7 +300,12 @@ ACE_MMAP_Memory_Pool::map_file (off_t map_size)
this->base_addr_,
0,
this->sa_) == -1
- || this->base_addr_ != 0 && this->mmap_.addr () != this->base_addr_)
+ || this->base_addr_ != 0
+#ifdef ACE_HAS_WINCE
+ && this->mmap_.addr () == 0) // WinCE does not allow users to specify alloc addr.
+#else
+ && this->mmap_.addr () != this->base_addr_)
+#endif // ACE_HAS_WINCE
{
#if 0
ACE_ERROR ((LM_ERROR,