diff --git a/compat/pread.c b/compat/pread.c index ce29997724..978cac4ec9 100644 --- a/compat/pread.c +++ b/compat/pread.c @@ -1,7 +1,5 @@ #include "../git-compat-util.h" -int read_in_full(int fd, void *buf, size_t count); - ssize_t git_pread(int fd, void *buf, size_t count, off_t offset) { off_t current_offset; diff --git a/git-compat-util.h b/git-compat-util.h index eb4d96944e..f4e0d08357 100644 --- a/git-compat-util.h +++ b/git-compat-util.h @@ -153,6 +153,10 @@ extern int git_munmap(void *start, size_t length); #define pread git_pread extern ssize_t git_pread(int fd, void *buf, size_t count, off_t offset); #endif +/* Forward decl that will remind us if its twin in cache.h changes. + This function in used in compat/pread.c. But we can't include + cache.h there. */ +extern int read_in_full(int fd, void *buf, size_t count); #ifdef NO_SETENV #define setenv gitsetenv