]> sourceware.org Git - glibc.git/commitdiff
Linux: Fix enum fsconfig_command detection in <sys/mount.h>
authorFlorian Weimer <fweimer@redhat.com>
Tue, 16 Aug 2022 07:25:23 +0000 (09:25 +0200)
committerFlorian Weimer <fweimer@redhat.com>
Tue, 16 Aug 2022 10:03:28 +0000 (12:03 +0200)
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").

sysdeps/unix/sysv/linux/sys/mount.h

index 2e3fd6a7fe6b38f32c2563512719a4ad76d73794..19841d07385244813e3773d872348d37dcc8c97d 100644 (file)
@@ -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() */
This page took 0.042166 seconds and 5 git commands to generate.