basic: move missing_random.h -> include/sys/random.h
This commit is contained in:
@@ -1,13 +1,11 @@
|
||||
/* SPDX-License-Identifier: LGPL-2.1-or-later */
|
||||
#pragma once
|
||||
|
||||
#include <sys/random.h> /* IWYU pragma: export */
|
||||
|
||||
#include "forward.h"
|
||||
#include_next <sys/random.h>
|
||||
|
||||
/* Defined since glibc-2.32. */
|
||||
#ifndef GRND_INSECURE
|
||||
# define GRND_INSECURE 0x0004
|
||||
#else
|
||||
assert_cc(GRND_INSECURE == 0x0004);
|
||||
_Static_assert(GRND_INSECURE == 0x0004, "");
|
||||
#endif
|
||||
@@ -6,6 +6,7 @@
|
||||
#include <string.h>
|
||||
#include <sys/auxv.h>
|
||||
#include <sys/ioctl.h>
|
||||
#include <sys/random.h>
|
||||
#include <threads.h>
|
||||
#include <unistd.h>
|
||||
|
||||
@@ -15,7 +16,6 @@
|
||||
#include "io-util.h"
|
||||
#include "iovec-util.h"
|
||||
#include "log.h"
|
||||
#include "missing_random.h"
|
||||
#include "parse-util.h"
|
||||
#include "pidfd-util.h"
|
||||
#include "process-util.h"
|
||||
|
||||
Reference in New Issue
Block a user