From 552d30cfb44437a67ab763d20173b2cb7fde8947 Mon Sep 17 00:00:00 2001 From: Eddie Ringle Date: Mon, 29 May 2017 18:58:39 -0500 Subject: [PATCH] Fix build with GCC 7.1 From the Porting to GCC 7[1] page: > Several C++ Standard Library headers have been changed to no longer include > the `` header. As such, C++ programs that used components defined > in `` without explicitly including that header will no longer > compile. > Previously components such as std::bind and std::function were > implicitly defined after including unrelated headers such as ``, > ``, ``, and ``. > Correct code should `#include ` to define them. [1]: https://gcc.gnu.org/gcc-7/porting_to.html Signed-off-by: Eddie Ringle --- src/anbox/bridge/platform_api_skeleton.h | 1 + src/anbox/qemu/at_parser.h | 1 + 2 files changed, 2 insertions(+) diff --git a/src/anbox/bridge/platform_api_skeleton.h b/src/anbox/bridge/platform_api_skeleton.h index 7a9891bc..843416e5 100644 --- a/src/anbox/bridge/platform_api_skeleton.h +++ b/src/anbox/bridge/platform_api_skeleton.h @@ -18,6 +18,7 @@ #ifndef ANBOX_BRIDGE_PLATFORM_SERVER_H_ #define ANBOX_BRIDGE_PLATFORM_SERVER_H_ +#include #include namespace google { diff --git a/src/anbox/qemu/at_parser.h b/src/anbox/qemu/at_parser.h index 39353760..def38815 100644 --- a/src/anbox/qemu/at_parser.h +++ b/src/anbox/qemu/at_parser.h @@ -18,6 +18,7 @@ #ifndef ANBOX_QEMU_AT_PARSER_H_ #define ANBOX_QEMU_AT_PARSER_H_ +#include #include #include #include -- GitLab