提交 62c34ee3 编写于 作者: D dhy308

Fix compile error

Issue: I6883N
Test: libc-test pass
Signed-off-by: Ndhy308 <tony.gan@huawei.com>
上级 c23354cf
......@@ -82,7 +82,9 @@ ohos_executable("unittest_ldso_ld_log") {
configs = [ "//third_party/musl/libc-test/src/common:config_unittest" ]
deps = [ "//third_party/musl:create_porting_src" ]
deps = [ "//third_party/musl:create_porting_src",
"//base/startup/init/services/param/base:parameterbase",
]
defines = [ "OHOS_ENABLE_PARAMETER" ]
}
......
/**
* Copyright (c) 2022 Huawei Device Co., Ltd.
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
#include <stdint.h>
int SystemReadParam(char *name, char *buffer, uint32_t *length);
\ No newline at end of file
......@@ -14,26 +14,13 @@
*/
#include <hilog_adapter.h>
#include <stdio.h>
#include <unistd.h>
#include <stdint.h>
#include <string.h>
#define SECOND_CALLED 2
static int flag = 0;
bool is_musl_log_enable()
{
return true;
}
int SystemReadParam(char *name, char *buffer, uint32_t *length)
bool get_bool_sysparam(CachedHandle cachedhandle)
{
flag++;
if (flag == SECOND_CALLED)
{
return 1;
} else {
return 0;
}
return true;
}
\ No newline at end of file
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册