pthread.h提示error C2011: “timespec”:“struct”类型重定义

在使用的项目属性->C/C++->预处理器定义->添加“HAVE_STRUCT_TIMESPEC”。

原文地址:https://www.cnblogs.com/Nikola/p/8330123.html