summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
Diffstat (limited to 'liblog/logger.h')
-rw-r--r--liblog/logger.h6
1 files changed, 4 insertions, 2 deletions
diff --git a/liblog/logger.h b/liblog/logger.h
index 508725610..2a4cfcb56 100644
--- a/liblog/logger.h
+++ b/liblog/logger.h
@@ -146,11 +146,13 @@ struct android_log_transport_context {
146/* OS specific dribs and drabs */ 146/* OS specific dribs and drabs */
147 147
148#if defined(_WIN32) 148#if defined(_WIN32)
149#include <private/android_filesystem_config.h>
149typedef uint32_t uid_t; 150typedef uint32_t uid_t;
151static inline uid_t __android_log_uid() { return AID_SYSTEM; }
152#else
153static inline uid_t __android_log_uid() { return getuid(); }
150#endif 154#endif
151 155
152LIBLOG_HIDDEN uid_t __android_log_uid();
153LIBLOG_HIDDEN pid_t __android_log_pid();
154LIBLOG_HIDDEN void __android_log_lock(); 156LIBLOG_HIDDEN void __android_log_lock();
155LIBLOG_HIDDEN int __android_log_trylock(); 157LIBLOG_HIDDEN int __android_log_trylock();
156LIBLOG_HIDDEN void __android_log_unlock(); 158LIBLOG_HIDDEN void __android_log_unlock();