Fix build for new toolchain 71/295371/1
authorTomasz Swierczek <t.swierczek@samsung.com>
Thu, 6 Jul 2023 07:05:04 +0000 (09:05 +0200)
committerTomasz Swierczek <t.swierczek@samsung.com>
Thu, 6 Jul 2023 07:05:04 +0000 (09:05 +0200)
Change-Id: I156cf22c4a752057490a6d6d7fbe040358fc933d

src/common/service_impl_utils.cpp
src/common/smack-labels.cpp
src/common/utils.cpp
src/server/rules-loader/security-manager-rules-loader.cpp

index 2a47c2a..6361431 100644 (file)
@@ -1,5 +1,5 @@
 /*
- * Copyright (c) 2019-2022 Samsung Electronics Co., Ltd. All rights reserved.
+ * Copyright (c) 2019-2023 Samsung Electronics Co., Ltd. All rights reserved.
  *
  * This file is licensed under the terms of MIT License or the Apache License
  * Version 2.0 of your choice. See the LICENSE.MIT file for MIT license details.
@@ -27,6 +27,8 @@
 
 #include "service_impl_utils.h"
 
+#include <functional>
+
 #include <dpl/log/log.h>
 #include <dpl/errno_string.h>
 
index 9c95961..0376a5f 100644 (file)
@@ -1,5 +1,5 @@
 /*
- * Copyright (c) 2014-2022 Samsung Electronics Co., Ltd. All rights reserved
+ * Copyright (c) 2014-2023 Samsung Electronics Co., Ltd. All rights reserved
  *
  * This file is licensed under the terms of MIT License or the Apache License
  * Version 2.0 of your choice. See the LICENSE.MIT file for MIT license details.
@@ -38,6 +38,7 @@
 #include <cstring>
 #include <cstdlib>
 #include <fstream>
+#include <functional>
 #include <string>
 #include <sstream>
 #include <algorithm>
index 282ec83..53a9fdf 100644 (file)
@@ -1,5 +1,5 @@
 /*
- * Copyright (c) 2019-2022 Samsung Electronics Co., Ltd. All rights reserved.
+ * Copyright (c) 2019-2023 Samsung Electronics Co., Ltd. All rights reserved.
  *
  * This file is licensed under the terms of MIT License or the Apache License
  * Version 2.0 of your choice. See the LICENSE.MIT file for MIT license details.
@@ -27,6 +27,7 @@
  */
 
 #include <fcntl.h>
+#include <functional>
 #include <grp.h>
 #include <system_error>
 #include <utils.h>
index dd3eea4..8761ba7 100644 (file)
@@ -1,5 +1,5 @@
 /*
- * Copyright (c) 2018-2022 Samsung Electronics Co., Ltd. All rights reserved.
+ * Copyright (c) 2018-2023 Samsung Electronics Co., Ltd. All rights reserved.
  *
  * This file is licensed under the terms of MIT License or the Apache License
  * Version 2.0 of your choice. See the LICENSE.MIT file for MIT license details.
@@ -58,7 +58,6 @@ namespace {
 //  constexpr const char *dbUpdateScript[dbVersion];
 #include "../gen/db.h"
 
-static_assert(dbSchema);
 // this ensures that parsing the sql files was done correctly and we have proper
 // number of update scripts
 static_assert(dbVersion == arraySize(dbUpdateScript));