From d7d50d6d9e60ca692b212f5ee0b6a173b6f60579 Mon Sep 17 00:00:00 2001 From: Al Hoang <13622+hoanga@users.noreply.github.com> Date: Thu, 13 Oct 2022 03:10:57 +0000 Subject: [PATCH] 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 --- AK/Platform.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/AK/Platform.h b/AK/Platform.h index 7f6003bff5..c8dd8ee43b 100644 --- a/AK/Platform.h +++ b/AK/Platform.h @@ -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