Linux中C++提示‘close’ was not declared

165 阅读1分钟

C++socket编程时关闭socket和epoll时出现‘close’ was not declared,是程序头文件缺失导致的。

 缺失头文件#include <unistd.h>