]> git.ipfire.org Git - thirdparty/systemd.git/commitdiff
tree-wide: drop inclusion of linux/memfd.h 35748/head
authorMike Yuan <me@yhndnzj.com>
Tue, 24 Dec 2024 15:52:08 +0000 (16:52 +0100)
committerMike Yuan <me@yhndnzj.com>
Tue, 24 Dec 2024 15:56:21 +0000 (16:56 +0100)
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.

meson.build
src/basic/memfd-util.c
src/home/homed-home.c

index aa51a3aead3726bff5f43117bab05164afb0a69c..efdf0501b32d9937078be0530fd3bd3db1f42add 100644 (file)
@@ -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',
index 9d3983b181628f0de9a583f45fffeee595681ff9..70ffa93a78f2a41d27629ca351083ace4232bb54 100644 (file)
@@ -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"
index fd9d90be902f27e8b6f920a6c1c749c2416da9e8..a6f99713dd62e8387e192428c19ed463857abbff 100644 (file)
@@ -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>