mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2025-04-21 03:55:24 +00:00
AK: Fix FreeBSD compilation for clock
FreeBSD introduced CLOCK_MONOTONIC_COARSE and CLOCK_REALTIME_COARSE. This update fixes ladybird builds from FreeBSD 13.1 see clock_gettime(2) https://www.freebsd.org/cgi/man.cgi?query=clock_gettime&apropos=0&sektion=0&manpath=FreeBSD+13.1-RELEASE&arch=default&format=ascii
This commit is contained in:
parent
096fe865c6
commit
d7d50d6d9e
Notes:
sideshowbarker
2024-07-17 06:00:10 +09:00
Author: https://github.com/hoanga 🔰 Commit: https://github.com/SerenityOS/serenity/commit/d7d50d6d9e Pull-request: https://github.com/SerenityOS/serenity/pull/15413 Reviewed-by: https://github.com/ADKaster
1 changed files with 1 additions and 1 deletions
|
@ -166,7 +166,7 @@ extern "C" {
|
|||
# define CLOCK_MONOTONIC_COARSE CLOCK_MONOTONIC
|
||||
#endif
|
||||
|
||||
#if defined(AK_OS_BSD_GENERIC)
|
||||
#if defined(AK_OS_BSD_GENERIC) && !defined(AK_OS_FREEBSD)
|
||||
# define CLOCK_MONOTONIC_COARSE CLOCK_MONOTONIC
|
||||
# define CLOCK_REALTIME_COARSE CLOCK_REALTIME
|
||||
#endif
|
||||
|
|
Loading…
Add table
Reference in a new issue