Skip to content

Commit 6b97083

Browse files
committed
Remove breaking nsec from android
1 parent 89c63b8 commit 6b97083

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

libgit2-sys/build.rs

Lines changed: 4 additions & 1 deletion
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)