Skip to content

Commit

Permalink
Merge pull request rust-lang#354 from bgermann/master
Browse files Browse the repository at this point in the history
Remove breaking nsec from android
  • Loading branch information
alexcrichton authored Sep 20, 2018
2 parents 89c63b8 + 6b97083 commit c0ab463
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion libgit2-sys/build.rs
Original file line number Diff line number Diff line change
Expand Up @@ -68,7 +68,10 @@ fn main() {
features.push_str("#ifndef INCLUDE_features_h\n");
features.push_str("#define INCLUDE_features_h\n");
features.push_str("#define GIT_THREADS 1\n");
features.push_str("#define GIT_USE_NSEC 1\n");

if !target.contains("android") {
features.push_str("#define GIT_USE_NSEC 1\n");
}

if target.contains("apple") {
features.push_str("#define GIT_USE_STAT_MTIMESPEC 1\n");
Expand Down

0 comments on commit c0ab463

Please sign in to comment.