Skip to content

Commit 249482d

Browse files
sunshinecogitster
authored andcommitted
configure.ac: fix botched FREAD_READS_DIRECTORIES check
3adf9fd (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 <[email protected]> Signed-off-by: Eric Sunshine <[email protected]> Signed-off-by: Junio C Hamano <[email protected]>
1 parent 3adf9fd commit 249482d

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

configure.ac

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -867,7 +867,7 @@ AC_RUN_IFELSE(
867867
[AC_LANG_PROGRAM([AC_INCLUDES_DEFAULT],
868868
[[
869869
FILE *f = fopen(".", "r");
870-
return f)]])],
870+
return f != NULL;]])],
871871
[ac_cv_fread_reads_directories=no],
872872
[ac_cv_fread_reads_directories=yes])
873873
])

0 commit comments

Comments
 (0)