diff --git a/clients/weston-info.c b/clients/weston-info.c index 89ef8f18e..f22781c2e 100644 --- a/clients/weston-info.c +++ b/clients/weston-info.c @@ -579,7 +579,9 @@ clock_name(clockid_t clk_id) [CLOCK_MONOTONIC_RAW] = "CLOCK_MONOTONIC_RAW", [CLOCK_REALTIME_COARSE] = "CLOCK_REALTIME_COARSE", [CLOCK_MONOTONIC_COARSE] = "CLOCK_MONOTONIC_COARSE", +#ifdef CLOCK_BOOTTIME [CLOCK_BOOTTIME] = "CLOCK_BOOTTIME", +#endif }; if (clk_id < 0 || (unsigned)clk_id >= ARRAY_LENGTH(names)) diff --git a/src/main.c b/src/main.c index 15910184e..329db1422 100644 --- a/src/main.c +++ b/src/main.c @@ -393,7 +393,9 @@ clock_name(clockid_t clk_id) [CLOCK_MONOTONIC_RAW] = "CLOCK_MONOTONIC_RAW", [CLOCK_REALTIME_COARSE] = "CLOCK_REALTIME_COARSE", [CLOCK_MONOTONIC_COARSE] = "CLOCK_MONOTONIC_COARSE", +#ifdef CLOCK_BOOTTIME [CLOCK_BOOTTIME] = "CLOCK_BOOTTIME", +#endif }; if (clk_id < 0 || (unsigned)clk_id >= ARRAY_LENGTH(names))