開發環境
(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
重新編譯就可以了