Skip to content

Commit f0495ef

Browse files
authored
Merge pull request #356 from bgermann/master
Add Solaris compile flags from cmake config
2 parents a051651 + dcbd08e commit f0495ef

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

libgit2-sys/build.rs

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -69,6 +69,10 @@ fn main() {
6969
add_c_files(&mut cfg, "libgit2/src/unix".as_ref());
7070
cfg.flag("-fvisibility=hidden");
7171
}
72+
if target.contains("solaris") {
73+
cfg.define("_POSIX_C_SOURCE", "200112L");
74+
cfg.define("__EXTENSIONS__", None);
75+
}
7276

7377
let mut features = String::new();
7478

0 commit comments

Comments
 (0)