]> git.proxmox.com Git - mirror_lxc.git/blobdiff - src/lxc/syscall_wrappers.h
tree-wide: wipe direct or indirect linux/mount.h inclusion
[mirror_lxc.git] / src / lxc / syscall_wrappers.h
index c8a7d0c7b700d1952b23a74077b7dbfd55842f3a..22ce536b44d5e929c7e5d370388138e9305a7e14 100644 (file)
@@ -10,6 +10,7 @@
 #include <linux/keyctl.h>
 #include <sched.h>
 #include <stdint.h>
+#include <sys/mount.h>
 #include <sys/prctl.h>
 #include <sys/syscall.h>
 #include <sys/types.h>
 #include "macro.h"
 #include "syscall_numbers.h"
 
-#if HAVE_STRUCT_MOUNT_ATTR
-#include <sys/mount.h>
-#elif HAVE_UAPI_STRUCT_MOUNT_ATTR
-#include <linux/mount.h>
-#endif
-
 #ifdef HAVE_LINUX_MEMFD_H
 #include <linux/memfd.h>
 #endif
@@ -216,7 +211,7 @@ extern int fsmount(int fs_fd, unsigned int flags, unsigned int attr_flags);
 /*
  * mount_setattr()
  */
-#if !HAVE_STRUCT_MOUNT_ATTR && !HAVE_UAPI_STRUCT_MOUNT_ATTR
+#if !HAVE_STRUCT_MOUNT_ATTR
 struct mount_attr {
        __u64 attr_set;
        __u64 attr_clr;