Fails to build with clang on Windows (gettime conflict)
Building 3.8.1 with clang v16 and mingw-w64 I get:
In file included from ../../gnutls-3.8.1/src/cli.c:65:
../../gnutls-3.8.1/src/benchmark.h:38:20: error: static declaration of 'gettime' follows non-static declaration
inline static void gettime(struct timespec *ts)
^
../../gnutls-3.8.1/src/gl/timespec.h:93:6: note: previous declaration is here
void gettime (struct timespec *) _GL_ARG_NONNULL ((1));
^
3.8.0 builds fine; gcc also works (it seems to provide a clock_gettime() somehow.. for clang the configure check fails)
Let me know If I should provide more information, or test something.
Edited by Christoph Reiter