Skip to content

Commit

Permalink
Use Solaris build flags for illumos targets (#535)
Browse files Browse the repository at this point in the history
  • Loading branch information
pfmooney authored Mar 26, 2020
1 parent 6f14f0f commit 613d653
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion libgit2-sys/build.rs
Original file line number Diff line number Diff line change
Expand Up @@ -93,7 +93,7 @@ fn main() {
add_c_files(&mut cfg, "libgit2/src/unix");
cfg.flag("-fvisibility=hidden");
}
if target.contains("solaris") {
if target.contains("solaris") || target.contains("illumos") {
cfg.define("_POSIX_C_SOURCE", "200112L");
cfg.define("__EXTENSIONS__", None);
}
Expand Down

0 comments on commit 613d653

Please sign in to comment.