Skip to content

Commit a85d004

Browse files
committed
Also for darwin OS
1 parent f745e7d commit a85d004

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

aws-lc-sys/builder/cc_builder.rs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -222,7 +222,7 @@ impl CcBuilder {
222222
}
223223
}
224224

225-
if target_os() == "macos" {
225+
if target_os() == "macos" || target_os() == "darwin" {
226226
// Certain MacOS system headers are guarded by _POSIX_C_SOURCE and _DARWIN_C_SOURCE
227227
build_options.push(BuildOption::define("_DARWIN_C_SOURCE", "1"));
228228
}
@@ -407,7 +407,7 @@ impl CcBuilder {
407407
};
408408

409409
je_builder.define("AWSLC", "1");
410-
if target_os() == "macos" {
410+
if target_os() == "macos" || target_os() == "darwin" {
411411
// Certain MacOS system headers are guarded by _POSIX_C_SOURCE and _DARWIN_C_SOURCE
412412
je_builder.define("_DARWIN_C_SOURCE", "1");
413413
}

0 commit comments

Comments
 (0)