Let's keep the file included only when the new kernel API is
necessary.
Signed-off-by: Karel Zak <kzak@redhat.com>
#include <stdbool.h>
#include <sys/socket.h>
#include <sys/wait.h>
+#include <sys/ioctl.h>
+#include <sys/mount.h>
#include <inttypes.h>
-#include "mountP.h"
#include "strutils.h"
#include "all-io.h"
#include "namespace.h"
+#include "mount-api-utils.h"
+
+#include "mountP.h"
#ifdef HAVE_LINUX_NSFS_H
# include <linux/nsfs.h>
#include "mountP.h"
#include "fileutils.h" /* statx() fallback */
+#include "mount-api-utils.h"
+
#include <inttypes.h>
#ifdef USE_LIBMOUNT_MOUNTFD_SUPPORT
#include "mountP.h"
#include "fileutils.h"
+#include "mount-api-utils.h"
static int tmptgt_cleanup(int old_ns_fd);
#include "debug.h"
#include "buffer.h"
#include "libmount.h"
-#include "mount-api-utils.h"
/*
* Debug
#include "strutils.h"
#include "list.h"
#include "mountP.h"
+#include "mount-api-utils.h"
#define MNT_OL_MAXMAPS 8