[PATCH] linux: Fix sys/mount.h usage of FSOPEN_CLOEXEC

Florian Weimer fweimer@redhat.com
Thu Aug 25 08:03:15 GMT 2022


* Radostin Stoyanov:

> 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>

Do you have an example of such a compilation failure?  Redudant
definitions with the same token sequence do not result in warnings.

With the redundant definition, we can check if the kernel value and our
value still match.

Thanks,
Florian



More information about the Libc-alpha mailing list