Skip to content

Commit a45ca6f

Browse files
ramsay-jonesgitster
authored andcommitted
config.mak.uname: add clock_gettime() to the cygwin build
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 <[email protected]> Signed-off-by: Junio C Hamano <[email protected]>
1 parent 394c4df commit a45ca6f

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

config.mak.uname

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -251,6 +251,8 @@ ifeq ($(uname_O),Cygwin)
251251
endif
252252
HAVE_DEV_TTY = YesPlease
253253
HAVE_GETDELIM = YesPlease
254+
HAVE_CLOCK_GETTIME = YesPlease
255+
HAVE_CLOCK_MONOTONIC = YesPlease
254256
HAVE_ALLOCA_H = YesPlease
255257
NEEDS_LIBICONV = YesPlease
256258
NO_FAST_WORKING_DIRECTORY = UnfortunatelyYes

0 commit comments

Comments
 (0)