summaryrefslogtreecommitdiff
path: root/clients
diff options
context:
space:
mode:
authorDerek Foreman <derekf@osg.samsung.com>2015-06-29 13:20:34 -0500
committerDerek Foreman <derekf@osg.samsung.com>2015-10-21 16:44:14 -0500
commit32838c93a509dbeda717e58279683c63a34a2e07 (patch)
tree62e4eda28d66097c753f109d7698878c51a76e8a /clients
parente2926942775616252dc6be12b8d2142f6e8b0ea8 (diff)
downloadweston-32838c93a509dbeda717e58279683c63a34a2e07.tar.gz
compositor/clients: Protect CLOCK_BOOTTIME with ifdefs
CLOCK_BOOTTIME is a relatively new* feature that may not actually be present everywhere (I'm looking at you wheezy). Since our use of it is actually only cosmetic, I've just ifdef'd if. * No it isn't. Signed-off-by: Derek Foreman <derekf@osg.samsung.com> Reviewed-by: Giulio Camuffo <giuliocamuffo@gmail.com>
Diffstat (limited to 'clients')
-rw-r--r--clients/weston-info.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/clients/weston-info.c b/clients/weston-info.c
index 89ef8f18..f22781c2 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))