概述
因项目需要安装编译scamper源码,在编译时遇到如下报错:
scamper_dl.c: In function ‘dl_linux_read’:
scamper_dl.c:1134:20: error: ‘SIOCGSTAMP’ undeclared (first use in this function)
if(ioctl(fd, SIOCGSTAMP, &dl.dl_tv) == 0)
^
scamper_dl.c:1134:20: note: each undeclared identifier is reported only once for each function it appears in
解决办法
编辑scamper/scamper_dl.c
文件,在文件里加上
#include
文章来源于互联网:scamper编译时提示‘SIOCGSTAMP’ undeclared