From: Peter Korsgaard Date: Mon, 11 Aug 2014 07:57:05 +0000 (+0200) Subject: network-manager: fix build on toolchains not exporting CLOCK_BOOTTIME (E.G. uClibc) X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=7e33639ecf32bf9615911e9366b18f56ff0d2c90;p=buildroot.git network-manager: fix build on toolchains not exporting CLOCK_BOOTTIME (E.G. uClibc) Fixes http://autobuild.buildroot.net/results/c13/c1388cf73961ddf06f771afe77a7e1e9fc0d8c20/ http://autobuild.buildroot.net/results/d33/d33ed1c3bf1be7c8f8ea02590a770b0d29c7d9fa/ http://autobuild.buildroot.net/results/093/093656db99067eb7bff725e292f8fc880a1d748e/ Signed-off-by: Peter Korsgaard --- diff --git a/package/network-manager/network-manager-0001-NetworkManagerUtils-fix-build-with-toolchains-not-ex.patch b/package/network-manager/network-manager-0001-NetworkManagerUtils-fix-build-with-toolchains-not-ex.patch new file mode 100644 index 0000000000..9286daa89d --- /dev/null +++ b/package/network-manager/network-manager-0001-NetworkManagerUtils-fix-build-with-toolchains-not-ex.patch @@ -0,0 +1,38 @@ +From b8241447e2a910dde57bf5a44a4464d80c87ebca Mon Sep 17 00:00:00 2001 +From: Peter Korsgaard +Date: Mon, 11 Aug 2014 09:37:05 +0200 +Subject: [PATCH] NetworkManagerUtils: fix build with toolchains not exporting + CLOCK_BOOTTIME + +E.G. uClibc 0.9.33 and earlier. + +Submitted upstream: https://bugzilla.gnome.org/show_bug.cgi?id=734599 + +Signed-off-by: Peter Korsgaard +--- + src/NetworkManagerUtils.c | 9 +++++++++ + 1 file changed, 9 insertions(+) + +diff --git a/src/NetworkManagerUtils.c b/src/NetworkManagerUtils.c +index aa689ce..fc85b00 100644 +--- a/src/NetworkManagerUtils.c ++++ b/src/NetworkManagerUtils.c +@@ -45,6 +45,15 @@ + #include "nm-posix-signals.h" + + /* ++ * Some toolchains (E.G. uClibc 0.9.33 and earlier) don't export ++ * CLOCK_BOOTTIME even though the kernel supports it, so provide a ++ * local definition ++ */ ++#ifndef CLOCK_BOOTTIME ++#define CLOCK_BOOTTIME 7 ++#endif ++ ++/* + * nm_ethernet_address_is_valid + * + * Compares an Ethernet address against known invalid addresses. +-- +2.0.0 +