diff mbox series

[v2,09/13] config.mak.uname: add clock_gettime() to the cygwin build

Message ID 3bd6e40cd23b07b86b5db146a00bfa01458f2e04.1743859985.git.ramsay@ramsayjones.plus.com (mailing list archive)
State New
Headers show
Series miscellaneous build mods (part 1) | expand

Commit Message

Ramsay Jones April 6, 2025, 7:38 p.m. UTC
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>
---
 config.mak.uname | 2 ++
 1 file changed, 2 insertions(+)

Comments

Patrick Steinhardt April 14, 2025, 7:55 a.m. UTC | #1
On Sun, Apr 06, 2025 at 08:38:35PM +0100, Ramsay Jones wrote:
> diff --git a/config.mak.uname b/config.mak.uname
> index 1b3ba8a341..942550fb9e 100644
> --- a/config.mak.uname
> +++ b/config.mak.uname
> @@ -251,6 +251,8 @@ ifeq ($(uname_O),Cygwin)
>          endif
>  	HAVE_DEV_TTY = YesPlease
>  	HAVE_GETDELIM = YesPlease
> +	HAVE_CLOCK_GETTIME=YesPlease
> +	HAVE_CLOCK_MONOTONIC=YesPlease

Nit: let's also have spaces around the assignment operator.

>  	HAVE_ALLOCA_H = YesPlease
>  	NEEDS_LIBICONV = YesPlease
>  	NO_FAST_WORKING_DIRECTORY = UnfortunatelyYes

Patrick
Ramsay Jones April 14, 2025, 8:05 p.m. UTC | #2
On 14/04/2025 08:55, Patrick Steinhardt wrote:
> On Sun, Apr 06, 2025 at 08:38:35PM +0100, Ramsay Jones wrote:
>> diff --git a/config.mak.uname b/config.mak.uname
>> index 1b3ba8a341..942550fb9e 100644
>> --- a/config.mak.uname
>> +++ b/config.mak.uname
>> @@ -251,6 +251,8 @@ ifeq ($(uname_O),Cygwin)
>>          endif
>>  	HAVE_DEV_TTY = YesPlease
>>  	HAVE_GETDELIM = YesPlease
>> +	HAVE_CLOCK_GETTIME=YesPlease
>> +	HAVE_CLOCK_MONOTONIC=YesPlease
> 
> Nit: let's also have spaces around the assignment operator.

Ah, yes, I forgot this one. If I need to re-roll, then I can
adjust this.

Thanks.

ATB,
Ramsay Jones

> 
>>  	HAVE_ALLOCA_H = YesPlease
>>  	NEEDS_LIBICONV = YesPlease
>>  	NO_FAST_WORKING_DIRECTORY = UnfortunatelyYes
> 
> Patrick
>
diff mbox series

Patch

diff --git a/config.mak.uname b/config.mak.uname
index 1b3ba8a341..942550fb9e 100644
--- a/config.mak.uname
+++ b/config.mak.uname
@@ -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