]> git.ipfire.org Git - thirdparty/git.git/blobdiff - Makefile
Merge branch 'ns/core-fsyncmethod'
[thirdparty/git.git] / Makefile
index 70f0a004e75614a1afc1ccae07c5564cced4f758..e8aba291d7f591eeec42855b06ed79549b8d0841 100644 (file)
--- a/Makefile
+++ b/Makefile
@@ -414,6 +414,8 @@ include shared.mak
 #
 # Define HAVE_CLOCK_MONOTONIC if your platform has CLOCK_MONOTONIC.
 #
+# Define HAVE_SYNC_FILE_RANGE if your platform has sync_file_range.
+#
 # Define NEEDS_LIBRT if your platform requires linking with librt (glibc version
 # before 2.17) for clock_gettime and CLOCK_MONOTONIC.
 #
@@ -1918,6 +1920,10 @@ ifdef HAVE_CLOCK_MONOTONIC
        BASIC_CFLAGS += -DHAVE_CLOCK_MONOTONIC
 endif
 
+ifdef HAVE_SYNC_FILE_RANGE
+       BASIC_CFLAGS += -DHAVE_SYNC_FILE_RANGE
+endif
+
 ifdef NEEDS_LIBRT
        EXTLIBS += -lrt
 endif