From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.org/gmane.linux.lib.musl.general/9107 Path: news.gmane.org!not-for-mail From: Felix Janda Newsgroups: gmane.linux.lib.musl.general Subject: [PATCH] add _DIRENT_HAVE_D_* constants to dirent.h Date: Wed, 13 Jan 2016 19:09:19 +0100 Message-ID: <20160113180919.GA11433@nyan> Reply-To: musl@lists.openwall.com NNTP-Posting-Host: plane.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Trace: ger.gmane.org 1452708746 1538 80.91.229.3 (13 Jan 2016 18:12:26 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Wed, 13 Jan 2016 18:12:26 +0000 (UTC) To: musl@lists.openwall.com Original-X-From: musl-return-9120-gllmg-musl=m.gmane.org@lists.openwall.com Wed Jan 13 19:12:25 2016 Return-path: Envelope-to: gllmg-musl@m.gmane.org Original-Received: from mother.openwall.net ([195.42.179.200]) by plane.gmane.org with smtp (Exim 4.69) (envelope-from ) id 1aJPuD-0000z8-7d for gllmg-musl@m.gmane.org; Wed, 13 Jan 2016 19:12:25 +0100 Original-Received: (qmail 11696 invoked by uid 550); 13 Jan 2016 18:12:23 -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 11643 invoked from network); 13 Jan 2016 18:12:17 -0000 Mail-Followup-To: musl@lists.openwall.com Content-Disposition: inline User-Agent: Mutt/1.5.23 (2014-03-12) Xref: news.gmane.org gmane.linux.lib.musl.general:9107 Archived-At: they can be used for checking existence of non-standard fields of struct dirent, are used by various programs to avoid configure checks and are at least present on glibc, uclibc, dietlibc and newlib. --- The motivation for this patch is http://oss.sgi.com/archives/xfs/2016-01/msg00388.html --- include/dirent.h | 3 +++ 1 file changed, 3 insertions(+) diff --git a/include/dirent.h b/include/dirent.h index 5aa8510..b2ffe8a 100644 --- a/include/dirent.h +++ b/include/dirent.h @@ -57,6 +57,9 @@ int getdents(int, struct dirent *, size_t); #endif #ifdef _GNU_SOURCE +#define _DIRENT_HAVE_D_OFF +#define _DIRENT_HAVE_D_RECLEN +#define _DIRENT_HAVE_D_TYPE int versionsort(const struct dirent **, const struct dirent **); #endif -- 2.4.10