我包含了以下标题:#include#include#include#include#include#include#include#include我也试过用#define_GNU_SOURCE之前#include,但它也无济于事。我尝试使用fcntl并通过它F_SETPIPE_SZ作为第二个参数,但我不断收到此错误消息:error:‘F_SETPIPE_SZ’undeclared(firstuseinthisfunction)其实我发现我不需要这个,但我只是好奇为什么我不能使用它。谢谢。所以这是解决方案,感谢ChronoKitsune:放#define_GNU_SOURCE在任何包含之