diff --git a/adb/client/usb_osx.cpp b/adb/client/usb_osx.cpp index e4a543bba..e36675493 100644 --- a/adb/client/usb_osx.cpp +++ b/adb/client/usb_osx.cpp @@ -38,6 +38,7 @@ #include #include +#include #include "adb.h" #include "transport.h" @@ -429,7 +430,7 @@ static void RunLoopThread() { VLOG(USB) << "RunLoopThread done"; } -static void usb_cleanup() { +static void usb_cleanup() NO_THREAD_SAFETY_ANALYSIS { VLOG(USB) << "usb_cleanup"; // Wait until usb operations in RunLoopThread finish, and prevent further operations. operate_device_lock.lock();