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:
Glenn Washburn 2015-11-13 17:03:51 +01:00 committed by Thomas Haller
parent 6a9d8c7fa4
commit bd5a4c6f6a
2 changed files with 12 additions and 0 deletions

View file

@ -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)
{

View file

@ -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