summaryrefslogtreecommitdiff
path: root/src/win32/posix.h
diff options
context:
space:
mode:
authorEdward Thomson <ethomson@github.com>2016-02-11 12:24:21 -0800
committerEdward Thomson <ethomson@github.com>2016-02-12 10:34:15 -0800
commit35439f5997c41d0c50d58997c2167ee93aad6c30 (patch)
tree131598ee3fa2374d4010828fc0407568fe80e0f8 /src/win32/posix.h
parent263e674ec6701b774d8f464150a9d30650c6da46 (diff)
downloadlibgit2-35439f5997c41d0c50d58997c2167ee93aad6c30.tar.gz
win32: introduce p_timeval that isn't stupid
Windows defines `timeval` with `long`, which we cannot sanely cope with. Instead, use a custom timeval struct.
Diffstat (limited to 'src/win32/posix.h')
-rw-r--r--src/win32/posix.h5
1 files changed, 3 insertions, 2 deletions
diff --git a/src/win32/posix.h b/src/win32/posix.h
index ac98fd864..732128bb0 100644
--- a/src/win32/posix.h
+++ b/src/win32/posix.h
@@ -9,6 +9,7 @@
#include "common.h"
#include "../posix.h"
+#include "win32-compat.h"
#include "path_w32.h"
#include "utf-conv.h"
#include "dir.h"
@@ -20,8 +21,8 @@ typedef SOCKET GIT_SOCKET;
extern int p_lstat(const char *file_name, struct stat *buf);
extern int p_stat(const char* path, struct stat* buf);
-extern int p_utimes(const char *filename, const struct timeval times[2]);
-extern int p_futimes(int fd, const struct timeval times[2]);
+extern int p_utimes(const char *filename, const struct p_timeval times[2]);
+extern int p_futimes(int fd, const struct p_timeval times[2]);
extern int p_readlink(const char *path, char *buf, size_t bufsiz);
extern int p_symlink(const char *old, const char *new);