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.html Signed-off-by: Eddie Ringle <eddie@ringle.io>
This commit is contained in:
parent
a40448e860
commit
552d30cfb4
2 changed files with 2 additions and 0 deletions
|
|
@ -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>
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue