mirror of
https://github.com/libgit2/libgit2.git
synced 2026-06-22 06:26:26 +00:00
Merge pull request #5628 from interkosmos/master
Fixed includes for FreeBSD
This commit is contained in:
@@ -273,7 +273,7 @@ cl_fs_cleanup(void)
|
||||
# include <sys/sendfile.h>
|
||||
#endif
|
||||
|
||||
#if defined(__APPLE__) || defined(__FreeBSD__)
|
||||
#if defined(__APPLE__)
|
||||
# include <copyfile.h>
|
||||
#endif
|
||||
|
||||
@@ -356,7 +356,7 @@ fs_copyfile_helper(const char *source, size_t source_len, const char *dest, int
|
||||
cl_must_pass((in = open(source, O_RDONLY)));
|
||||
cl_must_pass((out = open(dest, O_WRONLY|O_CREAT|O_TRUNC, dest_mode)));
|
||||
|
||||
#if USE_FCOPYFILE && (defined(__APPLE__) || defined(__FreeBSD__))
|
||||
#if USE_FCOPYFILE && defined(__APPLE__)
|
||||
((void)(source_len)); /* unused */
|
||||
cl_must_pass(fcopyfile(in, out, 0, COPYFILE_DATA));
|
||||
#elif USE_SENDFILE && defined(__linux__)
|
||||
|
||||
Reference in New Issue
Block a user