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 2a47c2aebe718fa9e5ed2132a8e23995692d84c1..6361431045c768d8a59fdac27d2deed9fae39c66 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 9c95961c87920c235d75672a2b5624572221a912..0376a5fb744132af2aaafaec3feaa2694a70ca08 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 282ec837370c5ea84bdbc0dd0421cc3412775cbc..53a9fdf88c8fd7fc96e6790acf3d34cc24694b41 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 dd3eea466ab8f977327bcef64f8a68bcdbce0cbf..8761ba75c74ed69dcc572cec5a925ef465d149c3 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));