From: Rich Felker <dalias@libc.org>
To: musl@lists.openwall.com
Subject: Re: [PATCH] Add _DIRENT_HAVE_D_* macros to dirent.h
Date: Fri, 12 Jan 2018 14:28:22 -0500 [thread overview]
Message-ID: <20180112192822.GL1627@brightrain.aerifal.cx> (raw)
In-Reply-To: <1515776763-13495-1-git-send-email-rostislav@tuxera.com>
On Fri, Jan 12, 2018 at 05:06:03PM +0000, Rostislav Skudnov wrote:
> ---
> include/dirent.h | 4 ++++
> 1 file changed, 4 insertions(+)
>
> diff --git a/include/dirent.h b/include/dirent.h
> index 88d3c3c..e0a8fe6 100644
> --- a/include/dirent.h
> +++ b/include/dirent.h
> @@ -17,6 +17,10 @@ extern "C" {
>
> typedef struct __dirstream DIR;
>
> +#define _DIRENT_HAVE_D_RECLEN
> +#define _DIRENT_HAVE_D_OFF
> +#define _DIRENT_HAVE_D_TYPE
> +
> struct dirent {
> ino_t d_ino;
> off_t d_off;
> --
> 2.1.4
Thanks, applying. This is a very nice type of extension to support
because it enables applications to conditionally support the
functionality without needing configure-time checks or other hackery.
Rich
prev parent reply other threads:[~2018-01-12 19:28 UTC|newest]
Thread overview: 2+ messages / expand[flat|nested] mbox.gz Atom feed top
2018-01-12 17:06 Rostislav Skudnov
2018-01-12 19:28 ` Rich Felker [this message]
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=20180112192822.GL1627@brightrain.aerifal.cx \
--to=dalias@libc.org \
--cc=musl@lists.openwall.com \
/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.
Code repositories for project(s) associated with this public inbox
https://git.vuxu.org/mirror/musl/
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 NNTP newsgroup(s).