summaryrefslogtreecommitdiffstats
path: root/meta-app-framework/recipes-security/security-manager/security-manager/0010-gcc-7-requires-include-functional-for-std-function.patch
blob: 0f48c5f68c1d1cbb949706bc4e01138e592485d9 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
From 8e93699c0f225716f3cd5eff790270ae9e3880f9 Mon Sep 17 00:00:00 2001
From: Changhyeok Bae <changhyeok.bae@gmail.com>
Date: Sun, 17 Dec 2017 15:40:58 +0000
Subject: [PATCH 10/14] gcc-7 requires include <functional> for std::function

Signed-off-by: Changhyeok Bae <changhyeok.bae@gmail.com>
---
 src/client/client-common.cpp      | 1 +
 src/common/smack-labels.cpp       | 1 +
 src/dpl/core/src/binary_queue.cpp | 1 +
 3 files changed, 3 insertions(+)

diff --git a/src/client/client-common.cpp b/src/client/client-common.cpp
index 883ab8d..1babdf7 100644
--- a/src/client/client-common.cpp
+++ b/src/client/client-common.cpp
@@ -31,6 +31,7 @@
 #include <sys/xattr.h>
 #include <linux/xattr.h>
 #include <unistd.h>
+#include <functional>
 
 #include <dpl/log/log.h>
 #include <dpl/serialization.h>
diff --git a/src/common/smack-labels.cpp b/src/common/smack-labels.cpp
index 0294a42..1598099 100644
--- a/src/common/smack-labels.cpp
+++ b/src/common/smack-labels.cpp
@@ -29,6 +29,7 @@
 #include <sys/xattr.h>
 #include <linux/xattr.h>
 #include <memory>
+#include <functional>
 #include <fts.h>
 #include <cstring>
 #include <string>
diff --git a/src/dpl/core/src/binary_queue.cpp b/src/dpl/core/src/binary_queue.cpp
index 72817a6..838409f 100644
--- a/src/dpl/core/src/binary_queue.cpp
+++ b/src/dpl/core/src/binary_queue.cpp
@@ -26,6 +26,7 @@
 #include <malloc.h>
 #include <cstring>
 #include <new>
+#include <functional>
 
 namespace SecurityManager {
 BinaryQueue::BinaryQueue() :
-- 
2.21.0