编译MQTT的C库时,test的项目们 出现的问题: fatal error C1083: 无法打开包括文件: “sys/time.h”: No such file or directory
解决办法:注释掉,换用Windows的文件
#include <time.h>
#include <socket.h>
/*#include <sys/time.h>
#include <sys/socket.h>
#include <unistd.h>*/
#include <errno.h>
sys/time.h是uinx系统下的库文件,而我现在使用的平台是在windows,显然是未指明程序运行的系统。