Re: [PATCH] Configure test for FREAD_READS_DIRECTORIES
Michal Rokos <michal.rokos@nextsoft.cz> writes:
> Hello,
"Hello," not wanted in the commit log message.
> this patch adds missing tests for FREAD_READS_DIRECTORIES.
>
> Signed-off-by: Michal Rokos <michal.rokos@nextsoft.cz>
Show 10 quoted lines
> +#
> +# Define FREAD_READS_DIRECTORIES if your are on a system which succeeds
> +# when attempting to read from an fopen'ed directory.
> +AC_CACHE_CHECK([whether system succeeds to read fopen'ed directory],
> + [ac_cv_fread_reads_directories],
> +[
> +AC_RUN_IFELSE(
> + [AC_LANG_PROGRAM([AC_INCLUDES_DEFAULT],
> + [[char c;
> + FILE *f = fopen("/etc", "r");Why "/etc" and not "." I have to wonder...
On how many different platforms was this configure check tested on?