* [PATCH] Add _DIRENT_HAVE_D_* macros to dirent.h
@ 2018-01-12 17:06 Rostislav Skudnov
2018-01-12 19:28 ` Rich Felker
0 siblings, 1 reply; 2+ messages in thread
From: Rostislav Skudnov @ 2018-01-12 17:06 UTC (permalink / raw)
To: musl
---
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
^ permalink raw reply [flat|nested] 2+ messages in thread
* Re: [PATCH] Add _DIRENT_HAVE_D_* macros to dirent.h
2018-01-12 17:06 [PATCH] Add _DIRENT_HAVE_D_* macros to dirent.h Rostislav Skudnov
@ 2018-01-12 19:28 ` Rich Felker
0 siblings, 0 replies; 2+ messages in thread
From: Rich Felker @ 2018-01-12 19:28 UTC (permalink / raw)
To: musl
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
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2018-01-12 19:28 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2018-01-12 17:06 [PATCH] Add _DIRENT_HAVE_D_* macros to dirent.h Rostislav Skudnov
2018-01-12 19:28 ` Rich Felker
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).