]> git.ipfire.org Git - thirdparty/git.git/commitdiff
configure.ac: fix HAVE_SYNC_FILE_RANGE definition
authorAdam Dinwoodie <adam@dinwoodie.org>
Tue, 5 Apr 2022 10:00:20 +0000 (11:00 +0100)
committerJunio C Hamano <gitster@pobox.com>
Wed, 6 Apr 2022 16:36:19 +0000 (09:36 -0700)
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 <adam@dinwoodie.org>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
configure.ac

index 6bd6bef1c44861e8644c8becc652bfdc90e3f32e..316a31d2313380dfe62385da237ef7d4418d11a5 100644 (file)
@@ -1087,7 +1087,7 @@ GIT_CONF_SUBST([HAVE_CLOCK_MONOTONIC])
 # Define HAVE_SYNC_FILE_RANGE=YesPlease if sync_file_range is available.
 GIT_CHECK_FUNC(sync_file_range,
        [HAVE_SYNC_FILE_RANGE=YesPlease],
-       [HAVE_SYNC_FILE_RANGE])
+       [HAVE_SYNC_FILE_RANGE=])
 GIT_CONF_SUBST([HAVE_SYNC_FILE_RANGE])
 
 #