我正在尝试构建我的库,但是一个名为 evutil.c fom libevent 的文件给我带来了困难。
libevent/evutil.c: error: implicit declaration of function 'pipe2' is invalid in C99
涉及的代码是:
if (pipe2(fd, O_NONBLOCK|O_CLOEXEC) == 0)
return 0;
Run Code Online (Sandbox Code Playgroud)
我现在无法将代码更新为 c11。我应该如何更改代码以不再出现此错误?
| 归档时间: |
|
| 查看次数: |
3010 次 |
| 最近记录: |