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

View file

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

View file

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