diff options
Diffstat (limited to 'liblog/logger.h')
-rw-r--r-- | liblog/logger.h | 6 |
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> | ||
149 | typedef uint32_t uid_t; | 150 | typedef uint32_t uid_t; |
151 | static inline uid_t __android_log_uid() { return AID_SYSTEM; } | ||
152 | #else | ||
153 | static inline uid_t __android_log_uid() { return getuid(); } | ||
150 | #endif | 154 | #endif |
151 | 155 | ||
152 | LIBLOG_HIDDEN uid_t __android_log_uid(); | ||
153 | LIBLOG_HIDDEN pid_t __android_log_pid(); | ||
154 | LIBLOG_HIDDEN void __android_log_lock(); | 156 | LIBLOG_HIDDEN void __android_log_lock(); |
155 | LIBLOG_HIDDEN int __android_log_trylock(); | 157 | LIBLOG_HIDDEN int __android_log_trylock(); |
156 | LIBLOG_HIDDEN void __android_log_unlock(); | 158 | LIBLOG_HIDDEN void __android_log_unlock(); |