This is the mail archive of the
libc-alpha@sourceware.org
mailing list for the glibc project.
Re: [hurd,commited] hurd: Fix support/support_enter_mount_namespace.c build
- From: Joseph Myers <joseph at codesourcery dot com>
- To: Samuel Thibault <samuel dot thibault at ens-lyon dot org>
- Cc: <libc-alpha at sourceware dot org>
- Date: Thu, 4 Jan 2018 13:30:57 +0000
- Subject: Re: [hurd,commited] hurd: Fix support/support_enter_mount_namespace.c build
- Authentication-results: sourceware.org; auth=none
- References: <20180103235533.23247-1-samuel.thibault@ens-lyon.org>
On Thu, 4 Jan 2018, Samuel Thibault wrote:
> +#ifdef CLONE_NEWNS
> #include <sys/mount.h>
> +#endif /* CLONE_NEWNS */
We use preprocessor indentation inside #if, so making a #include
conditional requires changing it to "# include", and likewise when making
any other preprocessor directives conditional (other than when the outer
#if is a header's multiple-include guard).
--
Joseph S. Myers
joseph@codesourcery.com