标签: compiler-warnings fallocate
我了解到fallocate()是Linux特定的系统调用。我的源代码中有#include <fcntl.h>,但仍然收到编译警告:
fallocate()
#include <fcntl.h>
warning: implicit declaration of function 'fallocate' is invalid in C99 [-Wimplicit-function-declaration]
我正在使用Linux内核5.3.7的Fedora 30。
我该如何解决?