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.
endif
foreach header : ['crypt.h',
'linux/ioprio.h',
- 'linux/memfd.h',
'linux/time_types.h',
'sys/auxv.h',
'sys/sdt.h',
/* 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"
/* 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>