]> git.ipfire.org Git - thirdparty/systemd.git/blobdiff - src/basic/memfd-util.c
util-lib: split our string related calls from util.[ch] into its own file string...
[thirdparty/systemd.git] / src / basic / memfd-util.c
index e99a738e1f88a79af71c8ad899c556da5fdd2b9c..4dafd69daf5a62e3ff531f44d8cdfd74acbdf10c 100644 (file)
   along with systemd; If not, see <http://www.gnu.org/licenses/>.
 ***/
 
-#include <stdio.h>
 #include <fcntl.h>
-#include <sys/mman.h>
-#include <sys/prctl.h>
-
 #ifdef HAVE_LINUX_MEMFD_H
-#  include <linux/memfd.h>
+#include <linux/memfd.h>
 #endif
+#include <stdio.h>
+#include <sys/mman.h>
+#include <sys/prctl.h>
 
+#include "missing.h"
+#include "string-util.h"
+#include "utf8.h"
 #include "util.h"
 #include "memfd-util.h"
-#include "utf8.h"
-#include "missing.h"
 
 int memfd_new(const char *name) {
         _cleanup_free_ char *g = NULL;