diff options
author | Carlos Martín Nieto <carlosmn@github.com> | 2016-02-18 12:31:56 +0100 |
---|---|---|
committer | Carlos Martín Nieto <carlosmn@github.com> | 2016-02-18 12:31:56 +0100 |
commit | 5663d4f69124481fcfab2952b5207c7563568388 (patch) | |
tree | 4925a5c8de2f660f9bf70160aa61970b6ecf81eb /src/unix/posix.h | |
parent | 594a5d12d4b9ba3ea542722805ada1028bd1b646 (diff) | |
parent | 9ce0399c4dad5ff040f2219fa1dd7a4531766414 (diff) | |
download | libgit2-5663d4f69124481fcfab2952b5207c7563568388.tar.gz |
Merge pull request #3613 from ethomson/fixups
Remove most of the silly warnings
Diffstat (limited to 'src/unix/posix.h')
-rw-r--r-- | src/unix/posix.h | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/src/unix/posix.h b/src/unix/posix.h index 6633689bc..83edf2b7e 100644 --- a/src/unix/posix.h +++ b/src/unix/posix.h @@ -52,8 +52,10 @@ extern char *p_realpath(const char *, char *); #define p_localtime_r(c, r) localtime_r(c, r) #define p_gmtime_r(c, r) gmtime_r(c, r) +#define p_timeval timeval + #ifdef HAVE_FUTIMENS -GIT_INLINE(int) p_futimes(int f, const struct timeval t[2]) +GIT_INLINE(int) p_futimes(int f, const struct p_timeval t[2]) { struct timespec s[2]; s[0].tv_sec = t[0].tv_sec; |