使用timespec类型是,显示unknown type name ‘timespec’

在‘timespec’前面加上struct

struct timespec
原文地址:https://www.cnblogs.com/y-z-h/p/13940738.html