summaryrefslogtreecommitdiff
path: root/src/unix/posix.h
diff options
context:
space:
mode:
authorCarlos Martín Nieto <carlosmn@github.com>2016-02-18 12:31:56 +0100
committerCarlos Martín Nieto <carlosmn@github.com>2016-02-18 12:31:56 +0100
commit5663d4f69124481fcfab2952b5207c7563568388 (patch)
tree4925a5c8de2f660f9bf70160aa61970b6ecf81eb /src/unix/posix.h
parent594a5d12d4b9ba3ea542722805ada1028bd1b646 (diff)
parent9ce0399c4dad5ff040f2219fa1dd7a4531766414 (diff)
downloadlibgit2-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.h4
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;