From: Radostin Stoyanov <rstoyanov@fedoraproject.org>
To: libc-alpha@sourceware.org
Cc: Radostin Stoyanov <rstoyanov@fedoraproject.org>
Subject: [PATCH] linux: Fix sys/mount.h usage of FSOPEN_CLOEXEC
Date: Thu, 25 Aug 2022 08:49:59 +0200 [thread overview]
Message-ID: <20220825064959.42153-1-rstoyanov@fedoraproject.org> (raw)
In commit 774058d72942249f71d74e7f2b639f77184160a6 was introduced
ifndef FSOPEN_CLOEXEC condition surrounding fsconfig_command.
However, the compilation would fail when there are multiple
`define FSOPEN_CLOEXEC`. This patch moves the #endif for
`#ifndef FSOPEN_CLOEXEC` after `#define FSOPEN_CLOEXEC`.
Signed-off-by: Radostin Stoyanov <rstoyanov@fedoraproject.org>
---
sysdeps/unix/sysv/linux/sys/mount.h | 3 ++-
1 file changed, 2 insertions(+), 1 deletion(-)
diff --git a/sysdeps/unix/sysv/linux/sys/mount.h b/sysdeps/unix/sysv/linux/sys/mount.h
index 19841d0738..92476ba2e7 100644
--- a/sysdeps/unix/sysv/linux/sys/mount.h
+++ b/sysdeps/unix/sysv/linux/sys/mount.h
@@ -256,11 +256,12 @@ enum fsconfig_command
FSCONFIG_CMD_RECONFIGURE = 7, /* Invoke superblock reconfiguration */
# define FSCONFIG_CMD_RECONFIGURE FSCONFIG_CMD_RECONFIGURE
};
-#endif
/* fsopen flags. */
#define FSOPEN_CLOEXEC 0x00000001
+#endif
+
/* 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() */
--
2.37.2
next reply other threads:[~2022-08-25 6:50 UTC|newest]
Thread overview: 2+ messages / expand[flat|nested] mbox.gz Atom feed top
2022-08-25 6:49 Radostin Stoyanov [this message]
2022-08-25 8:03 ` Florian Weimer
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=20220825064959.42153-1-rstoyanov@fedoraproject.org \
--to=rstoyanov@fedoraproject.org \
--cc=libc-alpha@sourceware.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).