Skip to content

tests: Fix build under MinGW#835

Merged
rgetz merged 1 commit intomasterfrom
pcercuei/fix-mingw
Apr 6, 2022
Merged

tests: Fix build under MinGW#835
rgetz merged 1 commit intomasterfrom
pcercuei/fix-mingw

Conversation

@pcercuei
Copy link
Copy Markdown
Contributor

@pcercuei pcercuei commented Apr 6, 2022

MinGW 32-bit does not have timespec_get(). Strangely, the 64-bit version
does have it. But both have clock_gettime(), so only use timespec_get()
when building under Visual Studio.

Fixes #830.

Signed-off-by: Paul Cercueil paul@crapouillou.net

MinGW 32-bit does not have timespec_get(). Strangely, the 64-bit version
does have it. But both have clock_gettime(), so only use timespec_get()
when building under Visual Studio.

Fixes #830.

Signed-off-by: Paul Cercueil <paul@crapouillou.net>
@pcercuei pcercuei requested review from mhennerich and rgetz April 6, 2022 14:53
@rgetz
Copy link
Copy Markdown
Contributor

rgetz commented Apr 6, 2022

This sort of points out we don't have a MinGW 32-bit / MinGW 64-bit on CI - should we try to add that (eventually)?

@pcercuei
Copy link
Copy Markdown
Contributor Author

pcercuei commented Apr 6, 2022

Maybe at some point, yes.

@rgetz rgetz merged commit 47381e2 into master Apr 6, 2022
@rgetz rgetz deleted the pcercuei/fix-mingw branch April 6, 2022 17:09
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

[MinGW32] missing timespec_get()

2 participants