手機 - N900 - Maemo - 解決uv__fs_utime: undefined reference to futimens、utimensat問題



參考資訊:
https://obnam.org/bugs/utimensat-undefined-symbol/

問題如下:

uv-src-unix-fs.c.o: In function `uv__fs_futime':
fs.c:(.text+0x214): undefined reference to `futimens'
uv-src-unix-fs.c.o: In function `uv__fs_utime':
fs.c:(.text+0xe1c): undefined reference to `utimensat'
collect2: error: ld returned 1 exit status
make: *** [cmake] Error 1

解法如下:

//return futimens(req->file, ts);
return utimes(req->path, ts);

//return utimensat(AT_FDCWD, req->path, ts, 0);
return utimes(req->path, ts);