From 0269833f92149a50f2eb522af8ef6481a4f17ac4 Mon Sep 17 00:00:00 2001 From: Axel Rasmussen Date: Tue, 2 Jun 2015 12:42:07 -0600 Subject: [PATCH] settings: expose GIT_USE_NSEC flag in git_libgit2_features --- include/git2/common.h | 5 +++-- src/settings.c | 3 +++ 2 files changed, 6 insertions(+), 2 deletions(-) diff --git a/include/git2/common.h b/include/git2/common.h index d84a76512..1846e601a 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 2097ca314..22e55953a 100644 --- a/src/settings.c +++ b/src/settings.c @@ -33,6 +33,9 @@ int git_libgit2_features() #endif #if defined(GIT_SSH) | GIT_FEATURE_SSH +#endif +#if defined(GIT_USE_NSEC) + | GIT_FEATURE_NSEC #endif ; }