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:
@@ -45,15 +45,6 @@
|
|||||||
#include "nm-setting-wireless.h"
|
#include "nm-setting-wireless.h"
|
||||||
#include "nm-setting-wireless-security.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));
|
G_STATIC_ASSERT (sizeof (NMUtilsTestFlags) <= sizeof (int));
|
||||||
static int _nm_utils_testing = 0;
|
static int _nm_utils_testing = 0;
|
||||||
|
|
||||||
|
@@ -26,10 +26,6 @@
|
|||||||
#include <sys/resource.h>
|
#include <sys/resource.h>
|
||||||
#include <time.h>
|
#include <time.h>
|
||||||
|
|
||||||
#ifndef CLOCK_BOOTTIME
|
|
||||||
#define CLOCK_BOOTTIME 7
|
|
||||||
#endif
|
|
||||||
|
|
||||||
#if defined(HAVE_DECL_REALLOCARRAY) && HAVE_DECL_REALLOCARRAY == 1
|
#if defined(HAVE_DECL_REALLOCARRAY) && HAVE_DECL_REALLOCARRAY == 1
|
||||||
#define HAVE_REALLOCARRAY 1
|
#define HAVE_REALLOCARRAY 1
|
||||||
#else
|
#else
|
||||||
@@ -180,15 +176,6 @@ sd_notify (int unset_environment, const char *state)
|
|||||||
#define MAX_HANDLE_SZ 128
|
#define MAX_HANDLE_SZ 128
|
||||||
#endif
|
#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 "sd-id128.h"
|
||||||
#include "sparse-endian.h"
|
#include "sparse-endian.h"
|
||||||
#include "async.h"
|
#include "async.h"
|
||||||
|
@@ -32,10 +32,6 @@
|
|||||||
|
|
||||||
#include "nm-test-utils-core.h"
|
#include "nm-test-utils-core.h"
|
||||||
|
|
||||||
#ifndef CLOCK_BOOTTIME
|
|
||||||
#define CLOCK_BOOTTIME 7
|
|
||||||
#endif
|
|
||||||
|
|
||||||
/*****************************************************************************/
|
/*****************************************************************************/
|
||||||
|
|
||||||
static void
|
static void
|
||||||
|
Reference in New Issue
Block a user