openwrt編譯e2fsprogs-1.43時報錯misc/create_inode.c:399:18: error: conflicting types for 'copy_file_range'


1. 詳細報錯信息

  misc/create_inode.c:399:18: error: conflicting types for 'copy_file_range'

  static errcode_t copy_file_range(ext2_filsys fs, int fd, ext2_file_t e2_file,

  ^~~~~~~~~~~~~~~

  In file included from ./../misc/create_inode.c:19:0:

  /usr/include/unistd.h:1110:9: note: previous declaration of 'copy_file_range' was here
  ssize_t copy_file_range (int __infd, __off64_t *__pinoff,

2. 解決辦法

  將copy_file_range改成copy_file_chunk

   cd build_dir/host/e2fsprogs-1.43.7

   vi misc/create_inode.c (將所有的copy_file_range改成copy_file_chunk)

3. 參考資料

  補丁


免責聲明!

本站轉載的文章為個人學習借鑒使用,本站對版權不負任何法律責任。如果侵犯了您的隱私權益,請聯系本站郵箱yoyou2525@163.com刪除。



 
粵ICP備18138465號   © 2018-2025 CODEPRJ.COM