本文主要是介绍conflicting types for ‘copy_file_range’,希望对大家解决编程问题提供一定的参考价值,需要的开发者们随着小编来一起学习吧!
编译 QIHUA-X40I 报错如下:
./…/misc/create_inode.c:395: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,
^
解决办法:
buildroot-2017.02.3/output/build/host-e2fsprogs-1.43.3/misc/create_inode.c
屏蔽掉 #include <unistd.h>
这篇关于conflicting types for ‘copy_file_range’的文章就介绍到这儿,希望我们推荐的文章对编程师们有所帮助!