使用fallocate()编译警告“函数的隐式声明”

时间:2020-04-21 14:22:56

标签: compiler-warnings fallocate

我了解到fallocate()是Linux特定的系统调用。我的源代码中有#include <fcntl.h>,但仍然收到编译警告:

warning: implicit declaration of function 'fallocate' is invalid in C99 [-Wimplicit-function-declaration]

我正在使用Linux内核5.3.7的Fedora 30。

我该如何解决?

0 个答案:

没有答案