Vinson, As I said in another reply, I think this the right thing to do on Windows. Please submit this and drop the "c11: .." patch. Thanks.
Jose ----- Original Message ----- > Match the behavior of the SCons MinGW build. > > This patch also fixes these build errors. > > CC glapi_entrypoint.lo > glapi_entrypoint.c: In function 'init_glapi_relocs_once': > glapi_entrypoint.c:341:4: error: unknown type name 'pthread_once_t' > static pthread_once_t once_control = PTHREAD_ONCE_INIT; > ^ > glapi_entrypoint.c:341:41: error: 'PTHREAD_ONCE_INIT' undeclared (first use > in this function) > static pthread_once_t once_control = PTHREAD_ONCE_INIT; > ^ > glapi_entrypoint.c:341:41: note: each undeclared identifier is reported only > once for each function it appears in > glapi_entrypoint.c:342:4: error: implicit declaration of function > 'pthread_once' [-Werror=implicit-function-declaration] > pthread_once( & once_control, init_glapi_relocs ); > ^ > > Signed-off-by: Vinson Lee <v...@freedesktop.org> > --- > configure.ac | 7 ++++++- > 1 file changed, 6 insertions(+), 1 deletion(-) > > diff --git a/configure.ac b/configure.ac > index 9c64400..ab3b91d 100644 > --- a/configure.ac > +++ b/configure.ac > @@ -552,7 +552,12 @@ dnl See if posix_memalign is available > AC_CHECK_FUNC([posix_memalign], [DEFINES="$DEFINES -DHAVE_POSIX_MEMALIGN"]) > > dnl Check for pthreads > -AX_PTHREAD > +case "$host_os" in > +mingw*) > + ;; > +*) > + AX_PTHREAD > +esac > dnl AX_PTHREADS leaves PTHREAD_LIBS empty for gcc and sets PTHREAD_CFLAGS > dnl to -pthread, which causes problems if we need -lpthread to appear in > dnl pkgconfig files. > -- > 1.9.3 > > _______________________________________________ > mesa-dev mailing list > mesa-dev@lists.freedesktop.org > https://urldefense.proofpoint.com/v1/url?u=http://lists.freedesktop.org/mailman/listinfo/mesa-dev&k=oIvRg1%2BdGAgOoM1BIlLLqw%3D%3D%0A&r=NMr9uy2iTjWVixC0wOcYCWEIYhfo80qKwRgdodpoDzA%3D%0A&m=3yagpSf7jQJPUz4%2BPaksqZla2Z81mjpcVmzLcZYx6tA%3D%0A&s=33df2f053ea51658e55f116c78207797dfe86311f4abb13d51481a31b051f823 > _______________________________________________ mesa-dev mailing list mesa-dev@lists.freedesktop.org http://lists.freedesktop.org/mailman/listinfo/mesa-dev