uclibc: fix two more regressions introduced in 1.0.18
[buildroot-gz.git] / package / weston / 0001-os-compatibility-define-CLOCK_BOOTTIME-when-not-avai.patch
bloba7f2a34a889f9cce0ebc6befa0921430baee610b
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>
12 ---
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
20 @@ -26,6 +26,7 @@
21 #include "config.h"
23 #include <sys/types.h>
24 +#include <time.h>
26 #ifdef HAVE_EXECINFO_H
27 #include <execinfo.h>
28 @@ -37,6 +38,10 @@ backtrace(void **buffer, int size)
30 #endif
32 +#ifndef CLOCK_BOOTTIME
33 +#define CLOCK_BOOTTIME 7
34 +#endif
36 int
37 os_socketpair_cloexec(int domain, int type, int protocol, int *sv);
39 --
40 2.1.0