We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
2 parents 89c63b8 + 6b97083 commit c0ab463Copy full SHA for c0ab463
libgit2-sys/build.rs
@@ -68,7 +68,10 @@ fn main() {
68
features.push_str("#ifndef INCLUDE_features_h\n");
69
features.push_str("#define INCLUDE_features_h\n");
70
features.push_str("#define GIT_THREADS 1\n");
71
- features.push_str("#define GIT_USE_NSEC 1\n");
+
72
+ if !target.contains("android") {
73
+ features.push_str("#define GIT_USE_NSEC 1\n");
74
+ }
75
76
if target.contains("apple") {
77
features.push_str("#define GIT_USE_STAT_MTIMESPEC 1\n");
0 commit comments