toku-mac commented on code in PR #18962: URL: https://github.com/apache/nuttx/pull/18962#discussion_r3304201547
########## sched/clock/clock_gettime.c: ########## @@ -215,7 +215,7 @@ int nxclock_gettime(clockid_t clock_id, FAR struct timespec *tp) * ****************************************************************************/ -int clock_gettime(clockid_t clock_id, FAR struct timespec *tp) +int weak_function clock_gettime(clockid_t clock_id, FAR struct timespec *tp) Review Comment: @yamt @xiaoxiang781216 * Add `ARCH_HAVE_CLOCKID_TRANSLATE` to Kconfig. * Reference this in `sched/clock/clock_gettime.c` and `include/nuttx/arch.h`. * Add `arch/sim/src/sim/posix/sim_clockid.c`. What do you think about this approach? -- This is an automated message from the Apache Git Service. To respond to the message, please log on to GitHub and use the URL above to go to the specific comment. To unsubscribe, e-mail: [email protected] For queries about this service, please contact Infrastructure at: [email protected]
