0f48c5f68c1d1cbb949706bc4e01138e592485d9
[AGL/meta-agl.git] / meta-app-framework / recipes-security / security-manager / security-manager / 0010-gcc-7-requires-include-functional-for-std-function.patch
1 From 8e93699c0f225716f3cd5eff790270ae9e3880f9 Mon Sep 17 00:00:00 2001
2 From: Changhyeok Bae <changhyeok.bae@gmail.com>
3 Date: Sun, 17 Dec 2017 15:40:58 +0000
4 Subject: [PATCH 10/14] gcc-7 requires include <functional> for std::function
5
6 Signed-off-by: Changhyeok Bae <changhyeok.bae@gmail.com>
7 ---
8  src/client/client-common.cpp      | 1 +
9  src/common/smack-labels.cpp       | 1 +
10  src/dpl/core/src/binary_queue.cpp | 1 +
11  3 files changed, 3 insertions(+)
12
13 diff --git a/src/client/client-common.cpp b/src/client/client-common.cpp
14 index 883ab8d..1babdf7 100644
15 --- a/src/client/client-common.cpp
16 +++ b/src/client/client-common.cpp
17 @@ -31,6 +31,7 @@
18  #include <sys/xattr.h>
19  #include <linux/xattr.h>
20  #include <unistd.h>
21 +#include <functional>
22  
23  #include <dpl/log/log.h>
24  #include <dpl/serialization.h>
25 diff --git a/src/common/smack-labels.cpp b/src/common/smack-labels.cpp
26 index 0294a42..1598099 100644
27 --- a/src/common/smack-labels.cpp
28 +++ b/src/common/smack-labels.cpp
29 @@ -29,6 +29,7 @@
30  #include <sys/xattr.h>
31  #include <linux/xattr.h>
32  #include <memory>
33 +#include <functional>
34  #include <fts.h>
35  #include <cstring>
36  #include <string>
37 diff --git a/src/dpl/core/src/binary_queue.cpp b/src/dpl/core/src/binary_queue.cpp
38 index 72817a6..838409f 100644
39 --- a/src/dpl/core/src/binary_queue.cpp
40 +++ b/src/dpl/core/src/binary_queue.cpp
41 @@ -26,6 +26,7 @@
42  #include <malloc.h>
43  #include <cstring>
44  #include <new>
45 +#include <functional>
46  
47  namespace SecurityManager {
48  BinaryQueue::BinaryQueue() :
49 -- 
50 2.21.0
51