mirror of
https://github.com/systemd/systemd.git
synced 2025-01-23 02:04:32 +03:00
tree-wide: drop inclusion of linux/memfd.h
We carry our own definitions in missing_mman.h, and otherwise sys/mman.h is employed. Let's drop the unneeded detection/inclusion of linux/memfd.h hence.
This commit is contained in:
parent
3ac386de0a
commit
c415a4816c
@ -771,7 +771,6 @@ if not cc.has_header('sys/capability.h')
|
||||
endif
|
||||
foreach header : ['crypt.h',
|
||||
'linux/ioprio.h',
|
||||
'linux/memfd.h',
|
||||
'linux/time_types.h',
|
||||
'sys/auxv.h',
|
||||
'sys/sdt.h',
|
||||
|
@ -1,13 +1,10 @@
|
||||
/* SPDX-License-Identifier: LGPL-2.1-or-later */
|
||||
|
||||
#include <errno.h>
|
||||
#include <sys/stat.h>
|
||||
#include <unistd.h>
|
||||
#if HAVE_LINUX_MEMFD_H
|
||||
#include <linux/memfd.h>
|
||||
#endif
|
||||
#include <stdio.h>
|
||||
#include <sys/prctl.h>
|
||||
#include <sys/stat.h>
|
||||
#include <unistd.h>
|
||||
|
||||
#include "alloc-util.h"
|
||||
#include "errno-util.h"
|
||||
|
@ -1,9 +1,5 @@
|
||||
/* SPDX-License-Identifier: LGPL-2.1-or-later */
|
||||
|
||||
#if HAVE_LINUX_MEMFD_H
|
||||
#include <linux/memfd.h>
|
||||
#endif
|
||||
|
||||
#include <sys/mman.h>
|
||||
#include <sys/quota.h>
|
||||
#include <sys/vfs.h>
|
||||
|
Loading…
x
Reference in New Issue
Block a user