Date: Wed, 13 Jan 2016 19:09:19 +0100 From: Felix Janda <felix.janda@...teo.de> To: musl@...ts.openwall.com Subject: [PATCH] add _DIRENT_HAVE_D_* constants to dirent.h 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
Powered by blists - more mailing lists
Confused about mailing lists and their use? Read about mailing lists on Wikipedia and check out these guidelines on proper formatting of your messages.