openwrt遇到clock_gettime问题解决

开发环境
(1)Ubuntu12.04
(2)openwrt 最新master

解决方法
找到/build_dir/host/bison-3.5.1/lib文件夹下的config.h和config.in.h
注释掉
/* Define to 1 if you have the `clock_gettime’ function. */
//#undef HAVE_CLOCK_GETTIME

/* Define to 1 if you have the `clock_settime’ function. */
//#undef HAVE_CLOCK_SETTIME

以及
/* Define to 1 if you have the `clock_gettime’ function. */
//#undef HAVE_CLOCK_GETTIME

/* Define to 1 if you have the `clock_settime’ function. */
//#undef HAVE_CLOCK_SETTIME

重新编译就可以了

發表評論
所有評論
還沒有人評論,想成為第一個評論的人麼? 請在上方評論欄輸入並且點擊發布.
相關文章