The cirros image was rebuilt against the 3.13.0-83 kernel, drivers e1000e, igbvf...
[packages/trusty/cirros-testvm.git] / cirros-testvm / src-cirros / buildroot-2015.05 / package / weston / 0001-os-compatibility-define-CLOCK_BOOTTIME-when-not-avai.patch
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
5
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.
10
11 Signed-off-by: Thomas Petazzoni <thomas.petazzoni@free-electrons.com>
12 ---
13  shared/os-compatibility.h | 5 +++++
14  1 file changed, 5 insertions(+)
15
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
20 @@ -26,6 +26,7 @@
21  #include "config.h"
22  
23  #include <sys/types.h>
24 +#include <time.h>
25  
26  #ifdef HAVE_EXECINFO_H
27  #include <execinfo.h>
28 @@ -37,6 +38,10 @@ backtrace(void **buffer, int size)
29  }
30  #endif
31  
32 +#ifndef CLOCK_BOOTTIME
33 +#define CLOCK_BOOTTIME 7
34 +#endif
35 +
36  int
37  os_socketpair_cloexec(int domain, int type, int protocol, int *sv);
38  
39 -- 
40 2.1.0
41