Make error: "use of undeclared identifier 'clock_nanosleep'"
anoduck opened this issue · 3 comments
anoduck commented
Received the following error attempting to compile the app in OpenBSD Current (7.0).
use of undeclared identifier 'clock_nanosleep'
clock_nanosleep(CLOCK_MONOTONIC, TIMER_ABSTIME, &time_, nullptr);
I imagine this might have something to do with OpenBSD's use of clang and the absence of GCC from the system.
hzeller commented
Interesting, seems that OpenBSD does not have clock_nanosleep()
while the other clock_* functions are available (I see this discussion on the openbsd-tech mailing list).
Anyway, this is now guarded with an #ifdef
, could you git pull the latest version and try again ?
hzeller commented
(leaving open until confirmed working)
anoduck commented
It worked like butter! Smooth as silk. Thanks!