summaryrefslogtreecommitdiff
path: root/ace/ACE.cpp
diff options
context:
space:
mode:
authorirfan <irfan@ae88bc3d-4319-0410-8dbf-d08b4c9d3795>1997-12-13 19:55:49 +0000
committerirfan <irfan@ae88bc3d-4319-0410-8dbf-d08b4c9d3795>1997-12-13 19:55:49 +0000
commita2b675c8d811e114b15703f03d473091abbc2852 (patch)
tree569418480f33d0ce2d6c6f380bcfb409b8bb3f5e /ace/ACE.cpp
parent1b04f57afb10591517d899771fc1c92c575ccd67 (diff)
downloadATCD-a2b675c8d811e114b15703f03d473091abbc2852.tar.gz
*** empty log message ***
Diffstat (limited to 'ace/ACE.cpp')
-rw-r--r--ace/ACE.cpp13
1 files changed, 1 insertions, 12 deletions
diff --git a/ace/ACE.cpp b/ace/ACE.cpp
index e8e3e674c68..c280a97c555 100644
--- a/ace/ACE.cpp
+++ b/ace/ACE.cpp
@@ -1239,18 +1239,7 @@ ACE::round_to_pagesize (off_t len)
if (ACE::pagesize_ == 0)
{
-#if defined (ACE_WIN32)
- SYSTEM_INFO sys_info;
- ::GetSystemInfo (&sys_info);
- ACE::pagesize_ = (size_t) sys_info.dwPageSize;
-#elif defined (_SC_PAGESIZE)
- ACE::pagesize_ = (size_t) ::sysconf (_SC_PAGESIZE);
-#elif defined (ACE_HAS_GETPAGESIZE)
- ACE::pagesize_ = (size_t) ::getpagesize ();
-#else
- // Use the default set in config.h
- ACE::pagesize_ = ACE_PAGE_SIZE;
-#endif /* ACE_WIN32 */
+ ACE::pagesize_ = ACE_OS::getpagesize ();
}
return (len + (ACE::pagesize_ - 1)) & ~(ACE::pagesize_ - 1);