소스 검색

fix build on non-linux

Samuel Thibault 8 년 전
부모
커밋
d70e48179f
1개의 변경된 파일3개의 추가작업 그리고 3개의 파일을 삭제
  1. 3 3
      src/core/disk_ops/unistd/disk_unistd_global.c

+ 3 - 3
src/core/disk_ops/unistd/disk_unistd_global.c

@@ -59,15 +59,15 @@
 
 #ifndef HAVE_COPY_FILE_RANGE 
 #ifdef __NR_copy_file_range
-static loff_t copy_file_range(int fd_in, loff_t *off_in, int fd_out,
+static ssize_t copy_file_range(int fd_in, loff_t *off_in, int fd_out,
 		loff_t *off_out, size_t len, unsigned int flags)
 {
 	return syscall(__NR_copy_file_range, fd_in, off_in, fd_out,
 			off_out, len, flags);
 }
 #else
-static loff_t copy_file_range(int fd_in, loff_t *off_in, int fd_out,
-		loff_t *off_out, size_t len, unsigned int flags)
+static ssize_t copy_file_range(int fd_in, off_t *off_in, int fd_out,
+		off_t *off_out, size_t len, unsigned int flags)
 {
 	errno = ENOSYS;
 	return -1;