Skip to content

Commit

Permalink
Remove breaking nsec from android
Browse files Browse the repository at this point in the history
  • Loading branch information
bgermann committed Sep 20, 2018
1 parent 89c63b8 commit 6b97083
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 6b97083

Please sign in to comment.