From 60509705e6a69c4a10718e434ad6921c591b215f Mon Sep 17 00:00:00 2001 From: Anatol Pomazau Date: Thu, 8 Aug 2019 14:37:59 -0700 Subject: [PATCH] Add header that declares memcpy function It fixes following issue when compiling adb with host libraries: In file included from core/adb/client/adb_install.cpp:31: In file included from core/adb/adb.h:30: In file included from core/adb/socket.h:28: core/adb/types.h:237:9: error: use of undeclared identifier 'memcpy'; did you mean 'wmemcpy'? memcpy(copy->data(), first_block->data() + begin_offset_, copy->size()); ^~~~~~ wmemcpy /usr/include/wchar.h:262:17: note: 'wmemcpy' declared here extern wchar_t *wmemcpy (wchar_t *__restrict __s1, Change-Id: I233e533fa7a5e2ed98190e34e32ddbaddc528558 --- adb/types.h | 2 ++ 1 file changed, 2 insertions(+) diff --git a/adb/types.h b/adb/types.h index cd1366dfb..8bd66be57 100644 --- a/adb/types.h +++ b/adb/types.h @@ -16,6 +16,8 @@ #pragma once +#include + #include #include #include