diff options
author | leozwang <leozwang@google.com> | 2014-08-22 15:35:47 -0700 |
---|---|---|
committer | Elliott Hughes <enh@google.com> | 2014-12-09 16:12:51 -0800 |
commit | 298b6c70a084e87e688d19d1b3d609410121cf1d (patch) | |
tree | f96a3e673737cea04586632999a68fde44a6db5b /adb/sysdeps.h | |
parent | 173310a27c1b58034bf47e08e58942137583fea8 (diff) | |
download | system_core-298b6c70a084e87e688d19d1b3d609410121cf1d.zip system_core-298b6c70a084e87e688d19d1b3d609410121cf1d.tar.gz system_core-298b6c70a084e87e688d19d1b3d609410121cf1d.tar.bz2 |
Fix build on mac.
On mac require a case.
Also, this code is not portable, will fix it in long run.
(cherry-pick of 0f1fda9ee80ba086e4c8960a7d153798e3cf3285.)
Change-Id: I76194b62cea29bd3d21c7ba6c3da4d549bea4738
Diffstat (limited to 'adb/sysdeps.h')
-rw-r--r-- | adb/sysdeps.h | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/adb/sysdeps.h b/adb/sysdeps.h index 22f44ce..8d63d14 100644 --- a/adb/sysdeps.h +++ b/adb/sysdeps.h @@ -524,7 +524,7 @@ static __inline__ char* adb_strtok_r(char *str, const char *delim, char **savep static __inline__ unsigned long adb_thread_id() { - return pthread_self(); + return (unsigned long)pthread_self(); } #undef strtok_r |