From 298b6c70a084e87e688d19d1b3d609410121cf1d Mon Sep 17 00:00:00 2001 From: leozwang Date: Fri, 22 Aug 2014 15:35:47 -0700 Subject: [PATCH] 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 --- adb/sysdeps.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/adb/sysdeps.h b/adb/sysdeps.h index 22f44ce3c..8d63d14b3 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