mirror of
https://gitlab.freedesktop.org/NetworkManager/NetworkManager.git
synced 2026-02-08 04:30:36 +01:00
core: fix build with toolchains not exporting CLOCK_BOOTTIME
E.G. uClibc 0.9.33 and earlier. https://bugzilla.gnome.org/show_bug.cgi?id=734599 Signed-off-by: Peter Korsgaard <peter@korsgaard.com> Signed-off-by: Thomas Haller <thaller@redhat.com>
This commit is contained in:
parent
2bd5cf51b8
commit
123322c6d6
1 changed files with 9 additions and 0 deletions
|
|
@ -44,6 +44,15 @@
|
|||
#include "nm-manager-auth.h"
|
||||
#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
|
||||
*
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue