]> git.99rst.org Git - git.git/commitdiff
config.mak.uname: add clock_gettime() to the cygwin build
authorRamsay Jones <redacted>
Wed, 16 Apr 2025 23:18:30 +0000 (00:18 +0100)
committerJunio C Hamano <redacted>
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 <redacted>
Signed-off-by: Junio C Hamano <redacted>
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
git clone https://git.99rst.org/PROJECT