Skip to content

Commit c0ab463

Browse files
authored
Merge pull request rust-lang#354 from bgermann/master
Remove breaking nsec from android
2 parents 89c63b8 + 6b97083 commit c0ab463

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

libgit2-sys/build.rs

+4-1
Original file line numberDiff line numberDiff line change
@@ -68,7 +68,10 @@ fn main() {
6868
features.push_str("#ifndef INCLUDE_features_h\n");
6969
features.push_str("#define INCLUDE_features_h\n");
7070
features.push_str("#define GIT_THREADS 1\n");
71-
features.push_str("#define GIT_USE_NSEC 1\n");
71+
72+
if !target.contains("android") {
73+
features.push_str("#define GIT_USE_NSEC 1\n");
74+
}
7275

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

0 commit comments

Comments
 (0)