mirror of
https://gitlab.freedesktop.org/NetworkManager/NetworkManager.git
synced 2026-05-04 16:28:01 +02: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
(cherry picked from commit 61948913c5)
This commit is contained in:
parent
6a9d8c7fa4
commit
bd5a4c6f6a
2 changed files with 12 additions and 0 deletions
|
|
@ -35,6 +35,7 @@
|
|||
#endif
|
||||
#include <unistd.h>
|
||||
#include <sys/syscall.h>
|
||||
#include <time.h>
|
||||
|
||||
#include "nm-logging.h"
|
||||
|
||||
|
|
@ -43,6 +44,12 @@
|
|||
#define BPF_XOR 0xa0
|
||||
#endif
|
||||
|
||||
#ifndef CLOCK_BOOTTIME
|
||||
#define CLOCK_BOOTTIME 7
|
||||
#endif
|
||||
|
||||
/*****************************************************************************/
|
||||
|
||||
static inline guint32
|
||||
_slog_level_to_nm (int slevel)
|
||||
{
|
||||
|
|
|
|||
|
|
@ -23,6 +23,7 @@
|
|||
#include <glib.h>
|
||||
#include <string.h>
|
||||
#include <errno.h>
|
||||
#include <time.h>
|
||||
#include <netinet/ether.h>
|
||||
#include <sys/types.h>
|
||||
#include <sys/wait.h>
|
||||
|
|
@ -33,6 +34,10 @@
|
|||
|
||||
#include "nm-test-utils.h"
|
||||
|
||||
#ifndef CLOCK_BOOTTIME
|
||||
#define CLOCK_BOOTTIME 7
|
||||
#endif
|
||||
|
||||
/*******************************************/
|
||||
|
||||
static void
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue