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

重新編譯就可以了

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