Skip to content

Commit 2e37594

Browse files
me-andgitster
authored andcommitted
configure.ac: fix HAVE_SYNC_FILE_RANGE definition
If sync_file_range is not available when building the configure script, there is a cosmetic bug when running that script reporting "HAVE_SYNC_FILE_RANGE: command not found". Remove that error message by defining HAVE_SYNC_FILE_RANGE to an empty string, rather than generating a script where that appears as a bare command. Signed-off-by: Adam Dinwoodie <[email protected]> Signed-off-by: Junio C Hamano <[email protected]>
1 parent f12f3b9 commit 2e37594

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
@@ -1087,7 +1087,7 @@ GIT_CONF_SUBST([HAVE_CLOCK_MONOTONIC])
10871087
# Define HAVE_SYNC_FILE_RANGE=YesPlease if sync_file_range is available.
10881088
GIT_CHECK_FUNC(sync_file_range,
10891089
[HAVE_SYNC_FILE_RANGE=YesPlease],
1090-
[HAVE_SYNC_FILE_RANGE])
1090+
[HAVE_SYNC_FILE_RANGE=])
10911091
GIT_CONF_SUBST([HAVE_SYNC_FILE_RANGE])
10921092

10931093
#

0 commit comments

Comments
 (0)