Follow @Openwall on Twitter for new release announcements and other news
[<prev] [next>] [<thread-prev] [day] [month] [year] [list]
Date: Fri, 12 Jan 2018 14:28:22 -0500
From: Rich Felker <dalias@...c.org>
To: musl@...ts.openwall.com
Subject: Re: [PATCH] Add _DIRENT_HAVE_D_* macros to dirent.h

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

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.