From: Yu Watanabe Date: Thu, 6 Dec 2018 05:44:47 +0000 (+0100) Subject: missing: add memfd related definitions to missing_mman.h X-Git-Tag: v240~126^2~14 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=c8a363eb15adce8f435933d0b9fa35ad4a210fd3;p=thirdparty%2Fsystemd.git missing: add memfd related definitions to missing_mman.h --- diff --git a/src/basic/meson.build b/src/basic/meson.build index f74bfb09d5c..3730930c7f6 100644 --- a/src/basic/meson.build +++ b/src/basic/meson.build @@ -105,6 +105,7 @@ basic_sources = files(''' missing_input.h missing_keyctl.h missing_magic.h + missing_mman.h missing_network.h missing_prctl.h missing_resource.h diff --git a/src/basic/missing.h b/src/basic/missing.h index 79faeeb9cf6..cd873a43adf 100644 --- a/src/basic/missing.h +++ b/src/basic/missing.h @@ -9,14 +9,6 @@ #include #include -#ifndef MFD_ALLOW_SEALING -#define MFD_ALLOW_SEALING 0x0002U -#endif - -#ifndef MFD_CLOEXEC -#define MFD_CLOEXEC 0x0001U -#endif - #ifndef TIOCVHANGUP #define TIOCVHANGUP 0x5437 #endif @@ -142,6 +134,7 @@ #include "missing_fcntl.h" #include "missing_input.h" #include "missing_magic.h" +#include "missing_mman.h" #include "missing_network.h" #include "missing_prctl.h" #include "missing_resource.h" diff --git a/src/basic/missing_mman.h b/src/basic/missing_mman.h new file mode 100644 index 00000000000..7ff12f770b9 --- /dev/null +++ b/src/basic/missing_mman.h @@ -0,0 +1,12 @@ +/* SPDX-License-Identifier: LGPL-2.1+ */ +#pragma once + +#include + +#ifndef MFD_ALLOW_SEALING +#define MFD_ALLOW_SEALING 0x0002U +#endif + +#ifndef MFD_CLOEXEC +#define MFD_CLOEXEC 0x0001U +#endif