mirror of
https://gitlab.freedesktop.org/NetworkManager/NetworkManager
synced 2024-10-15 12:34:55 +00:00
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:
parent
e1db543b5b
commit
e27b15c00d
|
@ -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;
|
||||
|
||||
|
|
|
@ -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"
|
||||
|
|
|
@ -32,10 +32,6 @@
|
|||
|
||||
#include "nm-test-utils-core.h"
|
||||
|
||||
#ifndef CLOCK_BOOTTIME
|
||||
#define CLOCK_BOOTTIME 7
|
||||
#endif
|
||||
|
||||
/*****************************************************************************/
|
||||
|
||||
static void
|
||||
|
|
Loading…
Reference in a new issue