From 56bf3098431f18e87bfcd4ccddae3f89fa59120f Mon Sep 17 00:00:00 2001 From: Elliott Hughes Date: Tue, 25 Aug 2015 11:01:39 -0700 Subject: [PATCH] Fix 32-bit build. fs_config uses "unsigned int" instead of mode_t. Work around this. Change-Id: I57b97d5bfc1b88089a41b4e8a50f1391b5c5113b --- adb/file_sync_service.cpp | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/adb/file_sync_service.cpp b/adb/file_sync_service.cpp index 6b5c51ff1..abf1c021a 100644 --- a/adb/file_sync_service.cpp +++ b/adb/file_sync_service.cpp @@ -305,7 +305,9 @@ static bool do_send(int s, const std::string& spec, std::vector& buffer) { gid_t gid = -1; uint64_t cap = 0; if (should_use_fs_config(path)) { - fs_config(path.c_str(), 0, &uid, &gid, &mode, &cap); + unsigned int broken_api_hack; + fs_config(path.c_str(), 0, &uid, &gid, &broken_api_hack, &cap); + mode = broken_api_hack; } return handle_send_file(s, path.c_str(), uid, gid, mode, buffer, do_unlink); }