From 1440c3606be3ad02ba2725595c0239c068d1fe71 Mon Sep 17 00:00:00 2001 From: Skif-off Date: Wed, 26 Sep 2018 01:30:37 +0400 Subject: [PATCH] GeanyLua: Fix build warnings (codebrainz's patch) --- configure.ac | 1 + geanylua/glspi_app.c | 5 ++++- 2 files changed, 5 insertions(+), 1 deletion(-) 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