diff options
author | Edward Thomson <ethomson@github.com> | 2016-02-11 12:24:21 -0800 |
---|---|---|
committer | Edward Thomson <ethomson@github.com> | 2016-02-12 10:34:15 -0800 |
commit | 35439f5997c41d0c50d58997c2167ee93aad6c30 (patch) | |
tree | 131598ee3fa2374d4010828fc0407568fe80e0f8 /tests/index | |
parent | 263e674ec6701b774d8f464150a9d30650c6da46 (diff) | |
download | libgit2-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 'tests/index')
-rw-r--r-- | tests/index/racy.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/tests/index/racy.c b/tests/index/racy.c index e2275ea14..ace84d585 100644 --- a/tests/index/racy.c +++ b/tests/index/racy.c @@ -54,7 +54,7 @@ void test_index_racy__write_index_just_after_file(void) git_index *index; git_diff *diff; git_buf path = GIT_BUF_INIT; - struct timeval times[2]; + struct p_timeval times[2]; /* Make sure we do have a timestamp */ cl_git_pass(git_repository_index(&index, g_repo)); |