diff options
author | Linquize <linquize@yahoo.com.hk> | 2014-08-02 21:57:56 +0800 |
---|---|---|
committer | Linquize <linquize@yahoo.com.hk> | 2014-08-10 22:00:04 +0800 |
commit | c6ba8a3765101adf61d7064e34519d2ff7512941 (patch) | |
tree | 9cb354efa54bfe8f67b4926a9b75a23d9499642c /src/posix.h | |
parent | 59403f1ff55346c64bfaa0744ea7f3375da71725 (diff) | |
download | libgit2-c6ba8a3765101adf61d7064e34519d2ff7512941.tar.gz |
Can read large file larger than 2GB on Windows
Diffstat (limited to 'src/posix.h')
-rw-r--r-- | src/posix.h | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/posix.h b/src/posix.h index 9ef348739..71c403c2f 100644 --- a/src/posix.h +++ b/src/posix.h @@ -97,7 +97,7 @@ typedef int git_file; * Use your manpages to check the docs on these. */ -extern int p_read(git_file fd, void *buf, size_t cnt); +extern ssize_t p_read(git_file fd, void *buf, size_t cnt); extern int p_write(git_file fd, const void *buf, size_t cnt); #define p_close(fd) close(fd) |