summaryrefslogtreecommitdiff
path: root/src/unix/posix.h
diff options
context:
space:
mode:
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;