[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
bug#57346: undeclared identifier 'CLOCK_MONOTONIC'
From: |
Gerd Möllmann |
Subject: |
bug#57346: undeclared identifier 'CLOCK_MONOTONIC' |
Date: |
Tue, 23 Aug 2022 08:43:21 +0200 |
User-agent: |
Gnus/5.13 (Gnus v5.13) Emacs/29.0.50 (darwin) |
Po Lu <luangruo@yahoo.com> writes:
>
> 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.
I don't know what version Glenn is building (it just says x86_74-darwin,
AFAICT), so maybe this is not useful, so just in case...
On my system it says for 'man clock_gettime'
DESCRIPTION
...
CLOCK_MONOTONIC clock that increments monotonically, tracking the time
since an arbitrary point, and will
continue to increment while the system is asleep.
...
HISTORY
These functions first appeared in Mac OSX 10.12
- bug#57346: undeclared identifier 'CLOCK_MONOTONIC', Glenn Morris, 2022/08/22
- bug#57346: undeclared identifier 'CLOCK_MONOTONIC', Po Lu, 2022/08/22
- bug#57346: undeclared identifier 'CLOCK_MONOTONIC',
Gerd Möllmann <=
- bug#57346: undeclared identifier 'CLOCK_MONOTONIC', Po Lu, 2022/08/23
- bug#57346: undeclared identifier 'CLOCK_MONOTONIC', Gerd Möllmann, 2022/08/23
- bug#57346: undeclared identifier 'CLOCK_MONOTONIC', Lars Ingebrigtsen, 2022/08/23
- bug#57346: undeclared identifier 'CLOCK_MONOTONIC', Po Lu, 2022/08/23
- bug#57346: undeclared identifier 'CLOCK_MONOTONIC', Lars Ingebrigtsen, 2022/08/23
- bug#57346: undeclared identifier 'CLOCK_MONOTONIC', Gregory Heytings, 2022/08/23
- bug#57346: undeclared identifier 'CLOCK_MONOTONIC', Howard Melman, 2022/08/23