]> git.ipfire.org Git - thirdparty/git.git/commitdiff
config.mak.uname: add clock_gettime() to the cygwin build
authorRamsay Jones <ramsay@ramsayjones.plus.com>
Wed, 16 Apr 2025 23:18:30 +0000 (00:18 +0100)
committerJunio C Hamano <gitster@pobox.com>
Thu, 17 Apr 2025 03:43:44 +0000 (20:43 -0700)
Cygwin supports the clock_gettime() function, along with the associated
CLOCK_MONOTONIC preprocessor symbol. The autoconf and meson builds both
enable the use of those symbols. In order to have the same configuration
for the make builds, add the HAVE_CLOCK_GETTIME and HAVE_CLOCK_MONOTONIC
build variables to the cygwin section of the config.mak.uname file.

Signed-off-by: Ramsay Jones <ramsay@ramsayjones.plus.com>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
config.mak.uname

index 1b3ba8a34143c9b0173350a85b3facab7ed2e321..d058b34292a159d5b12b481aca3484e63ae76e8d 100644 (file)
@@ -251,6 +251,8 @@ ifeq ($(uname_O),Cygwin)
         endif
        HAVE_DEV_TTY = YesPlease
        HAVE_GETDELIM = YesPlease
+       HAVE_CLOCK_GETTIME = YesPlease
+       HAVE_CLOCK_MONOTONIC = YesPlease
        HAVE_ALLOCA_H = YesPlease
        NEEDS_LIBICONV = YesPlease
        NO_FAST_WORKING_DIRECTORY = UnfortunatelyYes