chiark
/
gitweb
/
~ianmdlvl
/
elogind.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Prep v233: Unmask now needed functions in src/basic
[elogind.git]
/
src
/
basic
/
memfd-util.c
diff --git
a/src/basic/memfd-util.c
b/src/basic/memfd-util.c
index 1f92b681fa27afc1c35c3aa8783c2b302826c14b..e857c040d8657db9fa8ed831e16e5f53b512a7f7 100644
(file)
--- a/
src/basic/memfd-util.c
+++ b/
src/basic/memfd-util.c
@@
-1,5
+1,3
@@
-/*-*- Mode: C; c-basic-offset: 8; indent-tabs-mode: nil -*-*/
-
/***
This file is part of systemd.
/***
This file is part of systemd.
@@
-19,9
+17,12
@@
along with systemd; If not, see <http://www.gnu.org/licenses/>.
***/
along with systemd; If not, see <http://www.gnu.org/licenses/>.
***/
+#include <errno.h>
#include <fcntl.h>
#include <fcntl.h>
+#include <sys/stat.h>
+#include <unistd.h>
#ifdef HAVE_LINUX_MEMFD_H
#ifdef HAVE_LINUX_MEMFD_H
-#
include <linux/memfd.h>
+#include <linux/memfd.h>
#endif
#include <stdio.h>
#include <sys/mman.h>
#endif
#include <stdio.h>
#include <sys/mman.h>
@@
-29,11
+30,11
@@
#include "alloc-util.h"
#include "fd-util.h"
#include "alloc-util.h"
#include "fd-util.h"
+#include "macro.h"
#include "memfd-util.h"
#include "missing.h"
#include "string-util.h"
#include "utf8.h"
#include "memfd-util.h"
#include "missing.h"
#include "string-util.h"
#include "utf8.h"
-#include "util.h"
int memfd_new(const char *name) {
_cleanup_free_ char *g = NULL;
int memfd_new(const char *name) {
_cleanup_free_ char *g = NULL;