9286daa89dde7160c67172176e39c2865aa6a10b
[buildroot.git] /
1 From b8241447e2a910dde57bf5a44a4464d80c87ebca Mon Sep 17 00:00:00 2001
2 From: Peter Korsgaard <peter@korsgaard.com>
3 Date: Mon, 11 Aug 2014 09:37:05 +0200
4 Subject: [PATCH] NetworkManagerUtils: fix build with toolchains not exporting
5 CLOCK_BOOTTIME
6
7 E.G. uClibc 0.9.33 and earlier.
8
9 Submitted upstream: https://bugzilla.gnome.org/show_bug.cgi?id=734599
10
11 Signed-off-by: Peter Korsgaard <peter@korsgaard.com>
12 ---
13 src/NetworkManagerUtils.c | 9 +++++++++
14 1 file changed, 9 insertions(+)
15
16 diff --git a/src/NetworkManagerUtils.c b/src/NetworkManagerUtils.c
17 index aa689ce..fc85b00 100644
18 --- a/src/NetworkManagerUtils.c
19 +++ b/src/NetworkManagerUtils.c
20 @@ -45,6 +45,15 @@
21 #include "nm-posix-signals.h"
22
23 /*
24 + * Some toolchains (E.G. uClibc 0.9.33 and earlier) don't export
25 + * CLOCK_BOOTTIME even though the kernel supports it, so provide a
26 + * local definition
27 + */
28 +#ifndef CLOCK_BOOTTIME
29 +#define CLOCK_BOOTTIME 7
30 +#endif
31 +
32 +/*
33 * nm_ethernet_address_is_valid
34 *
35 * Compares an Ethernet address against known invalid addresses.
36 --
37 2.0.0
38