From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.org/gmane.linux.lib.musl.general/12367 Path: news.gmane.org!.POSTED!not-for-mail From: Rich Felker Newsgroups: gmane.linux.lib.musl.general Subject: Re: [PATCH] Add _DIRENT_HAVE_D_* macros to dirent.h Date: Fri, 12 Jan 2018 14:28:22 -0500 Message-ID: <20180112192822.GL1627@brightrain.aerifal.cx> References: <1515776763-13495-1-git-send-email-rostislav@tuxera.com> Reply-To: musl@lists.openwall.com NNTP-Posting-Host: blaine.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Trace: blaine.gmane.org 1515785201 17079 195.159.176.226 (12 Jan 2018 19:26:41 GMT) X-Complaints-To: usenet@blaine.gmane.org NNTP-Posting-Date: Fri, 12 Jan 2018 19:26:41 +0000 (UTC) User-Agent: Mutt/1.5.21 (2010-09-15) To: musl@lists.openwall.com Original-X-From: musl-return-12383-gllmg-musl=m.gmane.org@lists.openwall.com Fri Jan 12 20:26:37 2018 Return-path: Envelope-to: gllmg-musl@m.gmane.org Original-Received: from mother.openwall.net ([195.42.179.200]) by blaine.gmane.org with smtp (Exim 4.84_2) (envelope-from ) id 1ea4yI-0003ww-1W for gllmg-musl@m.gmane.org; Fri, 12 Jan 2018 20:26:34 +0100 Original-Received: (qmail 27981 invoked by uid 550); 12 Jan 2018 19:28:35 -0000 Mailing-List: contact musl-help@lists.openwall.com; run by ezmlm Precedence: bulk List-Post: List-Help: List-Unsubscribe: List-Subscribe: List-ID: Original-Received: (qmail 27959 invoked from network); 12 Jan 2018 19:28:34 -0000 Content-Disposition: inline In-Reply-To: <1515776763-13495-1-git-send-email-rostislav@tuxera.com> Original-Sender: Rich Felker Xref: news.gmane.org gmane.linux.lib.musl.general:12367 Archived-At: 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