提交 552d30cf 编写于 作者: E Eddie Ringle

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 `<functional>` header. As such, C++ programs that used components defined
> in `<functional>` 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 `<memory>`,
> `<future>`, `<mutex>`, and `<regex>`.
> Correct code should `#include <functional>` to define them.

[1]: https://gcc.gnu.org/gcc-7/porting_to.htmlSigned-off-by: NEddie Ringle <eddie@ringle.io>
上级 a40448e8
......@@ -18,6 +18,7 @@
#ifndef ANBOX_BRIDGE_PLATFORM_SERVER_H_
#define ANBOX_BRIDGE_PLATFORM_SERVER_H_
#include <functional>
#include <memory>
namespace google {
......
......@@ -18,6 +18,7 @@
#ifndef ANBOX_QEMU_AT_PARSER_H_
#define ANBOX_QEMU_AT_PARSER_H_
#include <functional>
#include <map>
#include <memory>
#include <string>
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册