settings: expose GIT_USE_NSEC flag in git_libgit2_features
diff --git a/include/git2/common.h b/include/git2/common.h
index d84a765..1846e60 100644
--- a/include/git2/common.h
+++ b/include/git2/common.h
@@ -99,8 +99,9 @@ GIT_EXTERN(void) git_libgit2_version(int *major, int *minor, int *rev);
*/
typedef enum {
GIT_FEATURE_THREADS = (1 << 0),
- GIT_FEATURE_HTTPS = (1 << 1),
- GIT_FEATURE_SSH = (1 << 2),
+ GIT_FEATURE_HTTPS = (1 << 1),
+ GIT_FEATURE_SSH = (1 << 2),
+ GIT_FEATURE_NSEC = (1 << 3),
} git_feature_t;
/**
diff --git a/src/settings.c b/src/settings.c
index 2097ca3..22e5595 100644
--- a/src/settings.c
+++ b/src/settings.c
@@ -34,6 +34,9 @@ int git_libgit2_features()
#if defined(GIT_SSH)
| GIT_FEATURE_SSH
#endif
+#if defined(GIT_USE_NSEC)
+ | GIT_FEATURE_NSEC
+#endif
;
}