diff --git a/BUILD.gn b/BUILD.gn index 23a0c10a5e1bba1920b427e71c628e15d897c753..087c7c6dcee3f3a1b2c979c1963083ebb439168e 100644 --- a/BUILD.gn +++ b/BUILD.gn @@ -92,7 +92,12 @@ if (defined(ohos_lite)) { # is on lite Os for ipcamera ohos_source_set("exif_static") { subsystem_name = "thirdparty" part_name = "libexif" - external_deps = [ "bounds_checking_function:libsec_shared" ] + + if (is_arkui_x) { # Arkui_x not sopported external_deps + deps = [ "//third_party/bounds_checking_function:libsec_static" ] + } else { + external_deps = [ "bounds_checking_function:libsec_shared" ] + } branch_protector_ret = "pac_ret" sources = [ "//third_party/libexif/libexif/apple/exif-mnote-data-apple.c", @@ -147,7 +152,11 @@ if (defined(ohos_lite)) { # is on lite Os for ipcamera ohos_shared_library("libexif") { branch_protector_ret = "pac_ret" deps = [ ":exif_static" ] - external_deps = [ "bounds_checking_function:libsec_shared" ] + if (is_arkui_x) { + deps += [ "//third_party/bounds_checking_function:libsec_static" ] + } else { + external_deps = [ "bounds_checking_function:libsec_shared" ] + } public_configs = [ ":build_public_config" ] install_images = [ system_base_dir ] subsystem_name = "thirdparty" diff --git a/libexif/huawei/mnote-huawei-entry.c b/libexif/huawei/mnote-huawei-entry.c index f8730ecf6ae176829599d192b45d34c028080c83..3501d94215a669f3dd65a4a4f234eb18c31face7 100644 --- a/libexif/huawei/mnote-huawei-entry.c +++ b/libexif/huawei/mnote-huawei-entry.c @@ -21,6 +21,7 @@ #include #include #include +#include #include #include diff --git a/libexif/huawei/mnote-huawei-entry.h b/libexif/huawei/mnote-huawei-entry.h index e5f45465aa4783d053794ce925fa3dc7fb6d037a..c42b9141f0aada56cc7f84eb49302c0ee145ba4d 100644 --- a/libexif/huawei/mnote-huawei-entry.h +++ b/libexif/huawei/mnote-huawei-entry.h @@ -19,7 +19,6 @@ #include #include #include -#include typedef struct _MnoteHuaweiEntry MnoteHuaweiEntry; typedef struct _ExifMnoteDataHuawei ExifMnoteDataHuawei;