diff options
author | Patrick Steinhardt <ps@pks.im> | 2017-07-04 10:57:28 +0000 |
---|---|---|
committer | Patrick Steinhardt <ps@pks.im> | 2017-08-16 07:12:38 +0200 |
commit | 8341d6cf839d46dc382db96b7dd50ec9777e7244 (patch) | |
tree | 8fb9fc935ba9bb08edf32507d28ee4a2d9cd0ce4 /src/unix/posix.h | |
parent | a390a8464e720365271238d80586d2b6c6ac3780 (diff) | |
download | libgit2-8341d6cf839d46dc382db96b7dd50ec9777e7244.tar.gz |
cmake: move regcomp and futimens checks to "features.h"
In our CMakeLists.txt, we have to check multiple functions in order to
determine if we have to use our own or whether we can use the
platform-provided one. For two of these functions, namely `regcomp_l()`
and `futimens`, the defined macro is actually used inside of the header
file "src/unix/posix.h". As such, these macros are not only required by
the library, but also by our test suite, which is makes use of internal
headers.
To prepare for the CMakeLists.txt split, move these two defines inside
of the "features.h" header.
Diffstat (limited to 'src/unix/posix.h')
-rw-r--r-- | src/unix/posix.h | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/unix/posix.h b/src/unix/posix.h index 548341906..bfabd1707 100644 --- a/src/unix/posix.h +++ b/src/unix/posix.h @@ -72,7 +72,7 @@ GIT_INLINE(int) p_fsync(int fd) #define p_timeval timeval -#ifdef HAVE_FUTIMENS +#ifdef GIT_USE_FUTIMENS GIT_INLINE(int) p_futimes(int f, const struct p_timeval t[2]) { struct timespec s[2]; @@ -86,7 +86,7 @@ GIT_INLINE(int) p_futimes(int f, const struct p_timeval t[2]) # define p_futimes futimes #endif -#ifdef HAVE_REGCOMP_L +#ifdef GIT_USE_REGCOMP_L #include <xlocale.h> GIT_INLINE(int) p_regcomp(regex_t *preg, const char *pattern, int cflags) { |