diff options
author | Junio C Hamano <gitster@pobox.com> | 2017-06-22 14:15:20 -0700 |
---|---|---|
committer | Junio C Hamano <gitster@pobox.com> | 2017-06-22 14:15:20 -0700 |
commit | df7fd961a9d9ba60840ffc0868d36cc3db2aec74 (patch) | |
tree | 3f5090d591b2308f553a9ee3764eb004c2dd0218 /configure.ac | |
parent | 05ec6e13aaf33b6a647e1321203a770e697eea9a (diff) | |
parent | 3adf9fdecfb0cd31a83ef3af1d8d631a1acd392b (diff) | |
download | git-df7fd961a9d9ba60840ffc0868d36cc3db2aec74.tar.gz |
Merge branch 'nd/fopen-errors'
Hotfix for a topic that is already in 'master'.
* nd/fopen-errors:
configure.ac: loosen FREAD_READS_DIRECTORIES test program
Diffstat (limited to 'configure.ac')
-rw-r--r-- | configure.ac | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/configure.ac b/configure.ac index 11d083fbe0..2f55237e65 100644 --- a/configure.ac +++ b/configure.ac @@ -922,9 +922,9 @@ AC_CACHE_CHECK([whether system succeeds to read fopen'ed directory], [ AC_RUN_IFELSE( [AC_LANG_PROGRAM([AC_INCLUDES_DEFAULT], - [[char c; + [[ FILE *f = fopen(".", "r"); - return f && fread(&c, 1, 1, f)]])], + return f)]])], [ac_cv_fread_reads_directories=no], [ac_cv_fread_reads_directories=yes]) ]) |