all: remove CLOCK_BOOTTIME defintions

It's useless and redundant noise.

The original motivation seems to have been compatibility with ancient
versions uClibc (2011), but given CLOCK_BOOTTIME definition is shipped with
kernel headers, the libc version shall not matter anyway.

Even if it was the case, uClibc has shipped the definition for over
7 years now and been superseded by uClibc-ng that always had the
definition.
This commit is contained in:
Lubomir Rintel 2018-06-18 17:16:20 +02:00
parent e1db543b5b
commit e27b15c00d
3 changed files with 0 additions and 26 deletions

View file

@ -45,15 +45,6 @@
#include "nm-setting-wireless.h"
#include "nm-setting-wireless-security.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
G_STATIC_ASSERT (sizeof (NMUtilsTestFlags) <= sizeof (int));
static int _nm_utils_testing = 0;

View file

@ -26,10 +26,6 @@
#include <sys/resource.h>
#include <time.h>
#ifndef CLOCK_BOOTTIME
#define CLOCK_BOOTTIME 7
#endif
#if defined(HAVE_DECL_REALLOCARRAY) && HAVE_DECL_REALLOCARRAY == 1
#define HAVE_REALLOCARRAY 1
#else
@ -180,15 +176,6 @@ sd_notify (int unset_environment, const char *state)
#define MAX_HANDLE_SZ 128
#endif
/*
* 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
#include "sd-id128.h"
#include "sparse-endian.h"
#include "async.h"

View file

@ -32,10 +32,6 @@
#include "nm-test-utils-core.h"
#ifndef CLOCK_BOOTTIME
#define CLOCK_BOOTTIME 7
#endif
/*****************************************************************************/
static void