summaryrefslogtreecommitdiff
path: root/libc-test/build.rs
diff options
context:
space:
mode:
Diffstat (limited to 'libc-test/build.rs')
-rw-r--r--libc-test/build.rs4
1 files changed, 2 insertions, 2 deletions
diff --git a/libc-test/build.rs b/libc-test/build.rs
index 4e67c6eb5d..80b73e911b 100644
--- a/libc-test/build.rs
+++ b/libc-test/build.rs
@@ -3081,7 +3081,7 @@ fn test_linux(target: &str) {
// target_env
let gnu = target.contains("gnu");
- let musl = target.contains("musl");
+ let musl = target.contains("musl") || target.contains("ohos");
let uclibc = target.contains("uclibc");
match (gnu, musl, uclibc) {
@@ -3946,7 +3946,7 @@ fn test_linux(target: &str) {
// are included (e.g. because including both sets of headers clashes)
fn test_linux_like_apis(target: &str) {
let gnu = target.contains("gnu");
- let musl = target.contains("musl");
+ let musl = target.contains("musl") || target.contains("ohos");
let linux = target.contains("linux");
let emscripten = target.contains("emscripten");
let android = target.contains("android");