aboutsummaryrefslogtreecommitdiff
path: root/sysdeps/unix/sysv/linux
diff options
context:
space:
mode:
authorFlorian Weimer <fweimer@redhat.com>2022-08-16 09:25:23 +0200
committerAdhemerval Zanella <adhemerval.zanella@linaro.org>2022-08-24 10:01:29 -0300
commit3bd3c612e98a53ce60ed972f5cd2b90628b3cba5 (patch)
tree869b8e1ce5e091209b692df51bd6528786561831 /sysdeps/unix/sysv/linux
parentbb1e8b0ca99b5cbedfae3e6245528a87d95ff3e2 (diff)
downloadglibc-3bd3c612e98a53ce60ed972f5cd2b90628b3cba5.tar
glibc-3bd3c612e98a53ce60ed972f5cd2b90628b3cba5.tar.gz
glibc-3bd3c612e98a53ce60ed972f5cd2b90628b3cba5.tar.bz2
glibc-3bd3c612e98a53ce60ed972f5cd2b90628b3cba5.zip
Linux: Fix enum fsconfig_command detection in <sys/mount.h>
The #ifdef FSOPEN_CLOEXEC check did not work because the macro was always defined in this header prior to the check, so that the <linux/mount.h> contents did not matter. Fixes commit 774058d72942249f71d74e7f2b639f77184160a6 ("linux: Fix sys/mount.h usage with kernel headers"). (cherry picked from commit 2955ef4b7c9b56fcd7abfeddef7ee83c60abff98)
Diffstat (limited to 'sysdeps/unix/sysv/linux')
-rw-r--r--sysdeps/unix/sysv/linux/sys/mount.h6
1 files changed, 3 insertions, 3 deletions
diff --git a/sysdeps/unix/sysv/linux/sys/mount.h b/sysdeps/unix/sysv/linux/sys/mount.h
index 2e3fd6a7fe..19841d0738 100644
--- a/sysdeps/unix/sysv/linux/sys/mount.h
+++ b/sysdeps/unix/sysv/linux/sys/mount.h
@@ -188,9 +188,6 @@ enum
};
-/* fsopen flags. */
-#define FSOPEN_CLOEXEC 0x00000001
-
/* fsmount flags. */
#define FSMOUNT_CLOEXEC 0x00000001
@@ -261,6 +258,9 @@ enum fsconfig_command
};
#endif
+/* fsopen flags. */
+#define FSOPEN_CLOEXEC 0x00000001
+
/* open_tree flags. */
#define OPEN_TREE_CLONE 1 /* Clone the target tree and attach the clone */
#define OPEN_TREE_CLOEXEC O_CLOEXEC /* Close the file on execve() */