From 6b9708335d39d952a4d7124be2b8cca00ca163bc Mon Sep 17 00:00:00 2001 From: bgermann Date: Thu, 20 Sep 2018 21:56:37 +0200 Subject: [PATCH] Remove breaking nsec from android --- libgit2-sys/build.rs | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/libgit2-sys/build.rs b/libgit2-sys/build.rs index 619472db28..12ad5c383a 100644 --- a/libgit2-sys/build.rs +++ b/libgit2-sys/build.rs @@ -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");