summaryrefslogtreecommitdiff
path: root/libutils/ProcessCallStack.cpp
diff options
context:
space:
mode:
authorIgor Murashkin <iam@google.com>2013-10-30 18:37:48 -0700
committerAndroid Git Automerger <android-git-automerger@android.com>2013-10-30 18:37:48 -0700
commitc20d479f0f068e3571ef61749e93037e99fb9cae (patch)
tree7bfe0e71395abdb7ff2505f91bc0038a45a89ad3 /libutils/ProcessCallStack.cpp
parent1051c27dcfa012ece8fdc24d0591b6e6a275ac2d (diff)
parentd3beee649ffe7c2879b7b3616d33d6e813e28dbd (diff)
am d3beee64: am e65b7ea8: utils: Fix broken sdk build on windows
* commit 'd3beee649ffe7c2879b7b3616d33d6e813e28dbd': utils: Fix broken sdk build on windows
Diffstat (limited to 'libutils/ProcessCallStack.cpp')
-rw-r--r--libutils/ProcessCallStack.cpp2
1 files changed, 2 insertions, 0 deletions
diff --git a/libutils/ProcessCallStack.cpp b/libutils/ProcessCallStack.cpp
index e202b9c1e..f9340c5b0 100644
--- a/libutils/ProcessCallStack.cpp
+++ b/libutils/ProcessCallStack.cpp
@@ -140,6 +140,7 @@ void ProcessCallStack::update(int32_t maxDepth) {
clear();
// Get current time.
+#ifndef USE_MINGW
{
time_t t = time(NULL);
struct tm tm;
@@ -193,6 +194,7 @@ void ProcessCallStack::update(int32_t maxDepth) {
ALOGE("%s: Failed to readdir from %s (errno = %d, '%s')",
__FUNCTION__, PATH_SELF_TASK, -code, strerror(code));
}
+#endif
closedir(dp);
}