From f89689ba9f198755a3f2ce05dec11b7ea185f374 Mon Sep 17 00:00:00 2001 From: Vito Caputo Date: Thu, 15 Jun 2023 17:38:35 -0700 Subject: build: adding -D_POSIX to CFLAGS for mingw's rand_r I'm not sure if this will stay long-term, but it seems not be disrupting linux builds and with open_memstream all gone now mingw is succeeding with this present. It would really make sense to simply replace all rand_r() usage with a libtil rand_r equivalent. That way it can guaranteen consistent behavior across platforms... --- configure.ac | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/configure.ac b/configure.ac index 0a4e378..3803083 100644 --- a/configure.ac +++ b/configure.ac @@ -22,7 +22,7 @@ PKG_CHECK_MODULES(SDL, sdl2, AM_CONDITIONAL(ENABLE_ROTOTILLER, [test "x$build_rototiller" = xtrue]) LIBS="$DRM_LIBS $SDL_LIBS $LIBS" -CFLAGS="$DRM_CFLAGS $SDL_CFLAGS $CFLAGS -D_GNU_SOURCE -Wall -Werror" +CFLAGS="$DRM_CFLAGS $SDL_CFLAGS $CFLAGS -D_GNU_SOURCE -D_POSIX -Wall" AX_PTHREAD LIBS="$PTHREAD_LIBS $LIBS" -- cgit v1.2.1