{"thread":{"id":"63125","subject":"[PATCH 08/12] config.mak.uname: add clock_gettime() to the cygwin build","startedAt":"2025-03-15T02:48:27Z","lastAt":"2025-03-15T02:48:27Z","messageCount":1,"participants":["Ramsay Jones"],"isPatch":true,"patchVersion":1,"patchTotal":12},"messages":[{"id":"514338","messageId":"73a5aeaf-6636-4f52-a6b8-3fb1f2c53fcd@ramsayjones.plus.com","threadId":"63125","inReplyTo":null,"subject":"[PATCH 08/12] config.mak.uname: add clock_gettime() to the cygwin build","fromName":"Ramsay Jones","fromEmail":"ramsay@ramsayjones.plus.com","sentAt":"2025-03-15T02:48:25Z","receivedAt":"2025-03-15T02:48:27Z","isPatch":true,"sender":{"key":"ramsay@ramsayjones.plus.com","avatar":"https://avatars.githubusercontent.com/u/33702710?v=4"},"body":"\nCygwin supports the clock_gettime() function, along with the associated\nCLOCK_MONOTONIC preprocessor symbol. The autoconf and meson builds both\nenable the use of those symbols. In order to have the same configuration\nfor the make builds, add the HAVE_CLOCK_GETTIME and HAVE_CLOCK_MONOTONIC\nbuild variables to the cygwin section of the config.mak.uname file.\n\nSigned-off-by: Ramsay Jones <ramsay@ramsayjones.plus.com>\n---\n config.mak.uname | 2 ++\n 1 file changed, 2 insertions(+)\n\ndiff --git a/config.mak.uname b/config.mak.uname\nindex 1b3ba8a341..942550fb9e 100644\n--- a/config.mak.uname\n+++ b/config.mak.uname\n@@ -251,6 +251,8 @@ ifeq ($(uname_O),Cygwin)\n         endif\n \tHAVE_DEV_TTY = YesPlease\n \tHAVE_GETDELIM = YesPlease\n+\tHAVE_CLOCK_GETTIME=YesPlease\n+\tHAVE_CLOCK_MONOTONIC=YesPlease\n \tHAVE_ALLOCA_H = YesPlease\n \tNEEDS_LIBICONV = YesPlease\n \tNO_FAST_WORKING_DIRECTORY = UnfortunatelyYes\n-- \n2.49.0\n"}]}