summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorYabin Cui2015-01-26 21:48:54 -0600
committerYabin Cui2015-01-27 16:23:22 -0600
commit4a6e5a3b641dd99b658c4c336490371a3a5ae180 (patch)
tree3048f441498f5d5aed8bb218ecaca5e9a80cbf40 /liblog/fake_log_device.c
parentfb538fb13d930a7398695d1044ceaaf854949018 (diff)
downloadplatform-system-core-4a6e5a3b641dd99b658c4c336490371a3a5ae180.tar.gz
platform-system-core-4a6e5a3b641dd99b658c4c336490371a3a5ae180.tar.xz
platform-system-core-4a6e5a3b641dd99b658c4c336490371a3a5ae180.zip
Kill HAVE_PTHREADS.
Bug: 19083585 Change-Id: Ic09eb3dd250bc5c5b63cac7998f99f5fa007f407
Diffstat (limited to 'liblog/fake_log_device.c')
-rw-r--r--liblog/fake_log_device.c8
1 files changed, 4 insertions, 4 deletions
diff --git a/liblog/fake_log_device.c b/liblog/fake_log_device.c
index 117e1547a..cf3dc500c 100644
--- a/liblog/fake_log_device.c
+++ b/liblog/fake_log_device.c
@@ -29,7 +29,7 @@
29 29
30#include <log/logd.h> 30#include <log/logd.h>
31 31
32#ifdef HAVE_PTHREADS 32#if !defined(_WIN32)
33#include <pthread.h> 33#include <pthread.h>
34#endif 34#endif
35 35
@@ -88,7 +88,7 @@ typedef struct LogState {
88} LogState; 88} LogState;
89 89
90 90
91#ifdef HAVE_PTHREADS 91#if !defined(_WIN32)
92/* 92/*
93 * Locking. Since we're emulating a device, we need to be prepared 93 * Locking. Since we're emulating a device, we need to be prepared
94 * to have multiple callers at the same time. This lock is used 94 * to have multiple callers at the same time. This lock is used
@@ -106,10 +106,10 @@ static void unlock()
106{ 106{
107 pthread_mutex_unlock(&fakeLogDeviceLock); 107 pthread_mutex_unlock(&fakeLogDeviceLock);
108} 108}
109#else // !HAVE_PTHREADS 109#else // !defined(_WIN32)
110#define lock() ((void)0) 110#define lock() ((void)0)
111#define unlock() ((void)0) 111#define unlock() ((void)0)
112#endif // !HAVE_PTHREADS 112#endif // !defined(_WIN32)
113 113
114 114
115/* 115/*