summaryrefslogtreecommitdiff
path: root/deps/acelite/ace/Profile_Timer.cpp
diff options
context:
space:
mode:
authorKargatum <dowlandtop@yandex.com>2020-11-11 22:09:02 +0700
committerGitHub <noreply@github.com>2020-11-11 09:09:02 -0600
commite27201cee25c69b2eae42ed0b518a5500a39d146 (patch)
treea726af6dd4a6ea1f734ac24683655a3615a8d822 /deps/acelite/ace/Profile_Timer.cpp
parenta93565b6da3cea5d46a9ff72049cdd4de21d48c6 (diff)
chore(Deps/Acelite): Update to 6.5.10 (#3450)
Diffstat (limited to 'deps/acelite/ace/Profile_Timer.cpp')
-rw-r--r--deps/acelite/ace/Profile_Timer.cpp5
1 files changed, 4 insertions, 1 deletions
diff --git a/deps/acelite/ace/Profile_Timer.cpp b/deps/acelite/ace/Profile_Timer.cpp
index f23a62f498..0e80384eaf 100644
--- a/deps/acelite/ace/Profile_Timer.cpp
+++ b/deps/acelite/ace/Profile_Timer.cpp
@@ -17,6 +17,9 @@
#if (defined (ACE_HAS_PRUSAGE_T) || defined (ACE_HAS_GETRUSAGE)) && !defined (ACE_WIN32)
#include "ace/OS_NS_stdio.h"
+#if defined (ACE_HAS_ALLOC_HOOKS)
+# include "ace/Malloc_Base.h"
+#endif /* ACE_HAS_ALLOC_HOOKS */
ACE_BEGIN_VERSIONED_NAMESPACE_DECL
@@ -43,7 +46,7 @@ ACE_Profile_Timer::ACE_Profile_Timer (void)
# if defined (ACE_HAS_PRUSAGE_T)
ACE_OS::memset (&this->last_usage_, 0, sizeof this->last_usage_);
char buf[20];
- ACE_OS::sprintf (buf, "/proc/%d", static_cast<int> (ACE_OS::getpid ()));
+ ACE_OS::sprintf (buf, 20, "/proc/%d", static_cast<int> (ACE_OS::getpid ()));
this->proc_handle_ = ACE_OS::open (buf, O_RDONLY, 0);
if (this->proc_handle_ == -1)