diff --git a/configure.ac b/configure.ac index a29e56560..ff99d58ff 100644 --- a/configure.ac +++ b/configure.ac @@ -9,6 +9,7 @@ AC_CONFIG_SRCDIR([po/POTFILES.in]) AC_CONFIG_HEADERS([config.h]) AC_CONFIG_MACRO_DIR([build/cache]) +AC_USE_SYSTEM_EXTENSIONS AC_PROG_CC AC_PROG_CC_C99 AM_PROG_CC_C_O diff --git a/geanylua/glspi_app.c b/geanylua/glspi_app.c index a0f6bd72e..14d2e780b 100644 --- a/geanylua/glspi_app.c +++ b/geanylua/glspi_app.c @@ -4,7 +4,10 @@ * See the file "geanylua.c" for copyright information. */ -#define _BSD_SOURCE /* for stat() and lstat() */ +#ifdef HAVE_CONFIG_H +# include "config.h" +#endif + #include #include #include