We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 1b9f98e commit 8b5ae80Copy full SHA for 8b5ae80
aws-lc-sys/builder/cc_builder.rs
@@ -383,6 +383,8 @@ impl CcBuilder {
383
let mut new_cflags = original_cflags.clone();
384
// The `_FORTIFY_SOURCE` macro often requires optimizations to also be enabled, so unset it.
385
new_cflags.push_str(" -O0 -Wp,-U_FORTIFY_SOURCE");
386
+ // Certain MacOS system headers are guarded by _POSIX_C_SOURCE and _DARWIN_C_SOURCE
387
+ new_cflags.push_str(" -D_DARWIN_C_SOURCE");
388
set_env_for_target("CFLAGS", &new_cflags);
389
// cc-rs currently prioritizes flags provided by CFLAGS over the flags provided by the build script.
390
// The environment variables used by the compiler are set when `get_compiler` is called.
0 commit comments