1 From 66b71951f8ce66f02040f8814e1d89db34c34a87 Mon Sep 17 00:00:00 2001
2 From: Thomas Petazzoni <thomas.petazzoni@free-electrons.com>
3 Date: Sun, 22 Feb 2015 12:36:00 +0100
4 Subject: [PATCH] os-compatibility: define CLOCK_BOOTTIME when not available
6 CLOCK_BOOTTIME is supposed to be provided by the C library headers,
7 but uClibc 0.9.33.2 does not provide it. Instead of depending on an
8 uClibc patch, let's make Weston define it to the right value when not
9 already defined by the C library.
11 Signed-off-by: Thomas Petazzoni <thomas.petazzoni@free-electrons.com>
13 shared/os-compatibility.h | 5 +++++
14 1 file changed, 5 insertions(+)
16 diff --git a/shared/os-compatibility.h b/shared/os-compatibility.h
17 index 172bb7e..e369899 100644
18 --- a/shared/os-compatibility.h
19 +++ b/shared/os-compatibility.h
23 #include <sys/types.h>
26 #ifdef HAVE_EXECINFO_H
28 @@ -37,6 +38,10 @@ backtrace(void **buffer, int size)
32 +#ifndef CLOCK_BOOTTIME
33 +#define CLOCK_BOOTTIME 7
37 os_socketpair_cloexec(int domain, int type, int protocol, int *sv);