commit | 0f1fda9ee80ba086e4c8960a7d153798e3cf3285 | [log] [tgz] |
---|---|---|
author | leozwang <leozwang@google.com> | Fri Aug 22 15:35:47 2014 -0700 |
committer | Leo Wang <leozwang@google.com> | Fri Aug 22 22:37:18 2014 +0000 |
tree | 5755f8824839f2af40bf7f88ec0200e755f9193b | |
parent | adb09fa01a16d8c5c92c2f8d325e1678c531223f [diff] |
Fix build on mac. On mac require a case. Also, this code is not portable, will fix it in long run. Change-Id: I76194b62cea29bd3d21c7ba6c3da4d549bea4738
diff --git a/adb/sysdeps.h b/adb/sysdeps.h index f92038f..11de548 100644 --- a/adb/sysdeps.h +++ b/adb/sysdeps.h
@@ -523,7 +523,7 @@ static __inline__ unsigned long adb_thread_id() { - return pthread_self(); + return (unsigned long)pthread_self(); } #undef strtok_r