diff options
| -rw-r--r-- | src/common.h | 5 | ||||
| -rw-r--r-- | src/unix/posix.h | 5 |
2 files changed, 8 insertions, 2 deletions
diff --git a/src/common.h b/src/common.h index 17b9c14e5..d3622d3eb 100644 --- a/src/common.h +++ b/src/common.h @@ -7,7 +7,10 @@ #ifndef INCLUDE_common_h__ #define INCLUDE_common_h__ -#include "git2/sys/features.h" +#ifndef LIBGIT2_NO_FEATURES_H +# include "git2/sys/features.h" +#endif + #include "git2/common.h" #include "cc-compat.h" diff --git a/src/unix/posix.h b/src/unix/posix.h index bfabd1707..ee36ea0f3 100644 --- a/src/unix/posix.h +++ b/src/unix/posix.h @@ -7,7 +7,10 @@ #ifndef INCLUDE_posix__unix_h__ #define INCLUDE_posix__unix_h__ -#include "git2/sys/features.h" +#ifndef LIBGIT2_NO_FEATURES_H +# include "git2/sys/features.h" +#endif + #include <stdio.h> #include <dirent.h> #include <sys/param.h> |
