mirror of
https://gitlab.freedesktop.org/NetworkManager/NetworkManager.git
synced 2026-01-21 08:20:33 +01:00
build: add backward compatibility define for missing CLOCK_BOOTTIME
[thaller@redhat.com: modified original patch] https://bugzilla.gnome.org/show_bug.cgi?id=757911
This commit is contained in:
parent
6263703286
commit
61948913c5
2 changed files with 10 additions and 0 deletions
|
|
@ -24,11 +24,16 @@
|
|||
#include <stdbool.h>
|
||||
#include <syslog.h>
|
||||
#include <sys/resource.h>
|
||||
#include <time.h>
|
||||
|
||||
#include "nm-default.h"
|
||||
|
||||
#define noreturn G_GNUC_NORETURN
|
||||
|
||||
#ifndef CLOCK_BOOTTIME
|
||||
#define CLOCK_BOOTTIME 7
|
||||
#endif
|
||||
|
||||
/*****************************************************************************/
|
||||
|
||||
static inline NMLogLevel
|
||||
|
|
|
|||
|
|
@ -22,6 +22,7 @@
|
|||
|
||||
#include <string.h>
|
||||
#include <errno.h>
|
||||
#include <time.h>
|
||||
#include <netinet/ether.h>
|
||||
#include <sys/types.h>
|
||||
#include <sys/wait.h>
|
||||
|
|
@ -32,6 +33,10 @@
|
|||
|
||||
#include "nm-test-utils.h"
|
||||
|
||||
#ifndef CLOCK_BOOTTIME
|
||||
#define CLOCK_BOOTTIME 7
|
||||
#endif
|
||||
|
||||
/*******************************************/
|
||||
|
||||
static void
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue