From 261c30d752b7ecb9b1c5ad2ad26ad7699ed76b3d Mon Sep 17 00:00:00 2001 From: "hyunuk.tak" Date: Thu, 25 Aug 2022 16:17:55 +0900 Subject: [PATCH] [Tizen] Add a header guard for thread - Problem There is no header guard for ThreadStackManager.h And softap module is not currently used. - Summary of Changes Add the header guard for ThreadStackManager.h using CHIP_DEVICE_CONFIG_ENABLE_THREAD. Remove the softap content from the pkg config. - Summary of Changes chip-tool and chip-lighting-app examples Signed-off-by: hyunuk.tak --- config/tizen/chip-gn/platform/BUILD.gn | 8 +------- src/platform/Tizen/DnssdImpl.cpp | 2 ++ 2 files changed, 3 insertions(+), 7 deletions(-) diff --git a/config/tizen/chip-gn/platform/BUILD.gn b/config/tizen/chip-gn/platform/BUILD.gn index 81a68e41fdf486..781cf53d222929 100644 --- a/config/tizen/chip-gn/platform/BUILD.gn +++ b/config/tizen/chip-gn/platform/BUILD.gn @@ -45,9 +45,6 @@ if (chip_enable_wifi) { pkg_config("capi-network-wifi-manager") { packages = [ "capi-network-wifi-manager" ] } - pkg_config("capi-network-softap") { - packages = [ "capi-network-softap" ] - } } if (chip_enable_ble) { @@ -74,10 +71,7 @@ source_set("tizen") { } if (chip_enable_wifi) { - public_configs += [ - ":capi-network-wifi-manager", - ":capi-network-softap", - ] + public_configs += [ ":capi-network-wifi-manager" ] } if (chip_enable_ble) { diff --git a/src/platform/Tizen/DnssdImpl.cpp b/src/platform/Tizen/DnssdImpl.cpp index f59e48b19d8407..3785cc9a45678d 100644 --- a/src/platform/Tizen/DnssdImpl.cpp +++ b/src/platform/Tizen/DnssdImpl.cpp @@ -32,7 +32,9 @@ #include #include +#if CHIP_DEVICE_CONFIG_ENABLE_THREAD #include +#endif using namespace chip::Dnssd; using namespace chip::DeviceLayer::Internal;