Define _GNU_SOURCE properly, other header fixes

This lets -std=c89 build for gcc 8.4.0
This commit is contained in:
Matt Johnston
2021-03-04 21:03:02 +08:00
parent 8b0fdf8010
commit 03481aba06
6 changed files with 8 additions and 9 deletions

View File

@@ -47,6 +47,9 @@ DB_TRYADDCFLAGS([-Wno-pointer-sign])
AC_MSG_NOTICE([Checking if compiler '$CC' supports -fno-strict-overflow])
DB_TRYADDCFLAGS([-fno-strict-overflow])
# needed for various extensions. define early before autoconf tests
AC_DEFINE([_GNU_SOURCE], [], [Use GNU extensions if glibc])
STATIC=0
AC_ARG_ENABLE(static,
[ --enable-static Build static binaries],