configure.ac: fix botched FREAD_READS_DIRECTORIES check

3adf9fdecf (configure.ac: loosen FREAD_READS_DIRECTORIES test program, 2017-06-14) broke the test program for the FREAD_READS_DIRECTORIES check by making it syntactically invalid (a dangling ")") and by botching the type returned from 'main' (a FILE* rather than int). As a consequence, the test program won't even compile, thus the check fails unconditionally. Fix these problems. Reported-by: Jonathan Primrose <jprimros@gmail.com> Signed-off-by: Eric Sunshine <sunshine@sunshineco.com> Signed-off-by: Junio C Hamano <gitster@pobox.com>

Eric Sunshine committed Apr 9, 2018 at 04:50 UTC 249482daf0ee2612022775fc8c549b06eb9f567b
1 file changed +1 -1
configure.ac
+1 -1
@@ -867,7 +867,7 @@ AC_RUN_IFELSE(
867 [AC_LANG_PROGRAM([AC_INCLUDES_DEFAULT],
868 [[
869 FILE *f = fopen(".", "r");
870 - return f)]])],
870 + return f != NULL;]])],
871 [ac_cv_fread_reads_directories=no],
872 [ac_cv_fread_reads_directories=yes])
873 ])