bug-gnu-emacs
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

bug#57346: undeclared identifier 'CLOCK_MONOTONIC'


From: Po Lu
Subject: bug#57346: undeclared identifier 'CLOCK_MONOTONIC'
Date: Tue, 23 Aug 2022 08:48:29 +0800
User-agent: Gnus/5.13 (Gnus v5.13) Emacs/28.0.91 (gnu/linux)

Glenn Morris <rgm@gnu.org> writes:

> Package: emacs
> Version: 29.0.50
>
> OS X Clang build failing for three weeks. Ref:
> https://hydra.nixos.org/build/186116177
> https://hydra.nixos.org/build/188132926
>
> xterm.c:6659:3: warning: implicit declaration of function
> 'clock_gettime' is invalid in C99 [-Wimplicit-function-declaration]
>   clock_gettime (CLOCK_MONOTONIC, &time);
>   ^
> xterm.c:6659:18: error: use of undeclared identifier 'CLOCK_MONOTONIC'
>   clock_gettime (CLOCK_MONOTONIC, &time);

Right, the internet says OS X doesn't have clock_gettime.

Does gnulib provide it? Failing that, I'd rather just make vsync
conditional on clock_gettime being available, since the mechanism it
uses cannot possibly work on OS X.




reply via email to

[Prev in Thread] Current Thread [Next in Thread]