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
7 E.G. uClibc 0.9.33 and earlier.
9 Submitted upstream: https://bugzilla.gnome.org/show_bug.cgi?id=734599
11 Signed-off-by: Peter Korsgaard <peter@korsgaard.com>
13 src/NetworkManagerUtils.c | 9 +++++++++
14 1 file changed, 9 insertions(+)
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
21 #include "nm-posix-signals.h"
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
28 +#ifndef CLOCK_BOOTTIME
29 +#define CLOCK_BOOTTIME 7
33 * nm_ethernet_address_is_valid
35 * Compares an Ethernet address against known invalid addresses.