summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorVito Caputo <vcaputo@pengaru.com>2023-06-15 17:38:35 -0700
committerVito Caputo <vcaputo@pengaru.com>2023-06-15 17:38:35 -0700
commitf89689ba9f198755a3f2ce05dec11b7ea185f374 (patch)
tree45246b812f8751c0e3d229ca46ea8831ddb4593b
parent913bbcf6af2590855577b28eaccdbbeedad5cbff (diff)
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...
-rw-r--r--configure.ac2
1 files changed, 1 insertions, 1 deletions
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"
© All Rights Reserved