fix the macos build failure, error logs are below:
/tmp/vineyard-20240419-52947-c35b1q/v6d-0.22.0/modules/llm-cache/storage/file_storage.cc:667:7: error: no matching conversion for functional-style cast from 'std::chrono::duration<int64_t, std::nano>' (aka 'duration<long long, ratio<1LL, 1000000000LL>>') to 'std::chrono::time_point<std::chrono::system_clock>'
std::chrono::time_point<std::chrono::system_clock>(time);
^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/tmp/vineyard-20240419-52947-c35b1q/v6d-0.22.0/modules/llm-cache/storage/local_file_storage.cc:196:15: error: no member named 'st_atim' in 'stat'
statbuf.st_atim.tv_sec * SECOND_TO_NANOSECOND + statbuf.st_atim.tv_nsec);
~~~~~~~ ^
/tmp/vineyard-20240419-52947-c35b1q/v6d-0.22.0/modules/llm-cache/storage/local_file_storage.cc:196:63: error: no member named 'st_atim' in 'stat'
statbuf.st_atim.tv_sec * SECOND_TO_NANOSECOND + statbuf.st_atim.tv_nsec);
~~~~~~~ ^
What do these changes do?
fix the macos build failure, error logs are below:
Related issue number
fixes #1867
relates to https://github.com/Homebrew/homebrew-core/pull/169388