aviralgarg05 commented on PR #18331: URL: https://github.com/apache/nuttx/pull/18331#issuecomment-3841159287
> Hi @aditya0yadav , I converted PR into draft. > > @FelipeMdeO @lupyuen @aviralgarg05 What do you think? #17818 Hi @simbit18, thanks for tagging me, the core approach of using `setitimer()` for macOS makes sense as a workaround for the missing POSIX timers but the addition of `#define _POSIX_C_SOURCE 200809L` in `sim_hosttime.c` has broken the Linux build. It causes an implicit declaration error for `usleep()` because usleep was removed in `POSIX 2008`. We might need to keep `_POSIX_C_SOURCE` at an older version or switch `usleep` to `nanosleep`. -- 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]
