From ace26447603d3f7ecd82fd3910174f603c2c7464 Mon Sep 17 00:00:00 2001 From: Michael Krelin Date: Sun, 13 Feb 2005 21:48:37 +0000 Subject: portabiity improvements --- (limited to 'src') diff --git a/src/Makefile.am b/src/Makefile.am index e5c6778..d516d37 100644 --- a/src/Makefile.am +++ b/src/Makefile.am @@ -4,7 +4,7 @@ if HAVE_FCGI lib_LTLIBRARIES += libkingate-fcgi.la endif -INCLUDES = -I${top_srcdir}/include +INCLUDES = -I${top_srcdir}/include -I${top_srcdir} AM_CXXFLAGS = ${KONFORKA_CFLAGS} LDADD = ${KONFORKA_LIBS} diff --git a/src/plaincgi.cc b/src/plaincgi.cc index 6934748..1cb7dc6 100644 --- a/src/plaincgi.cc +++ b/src/plaincgi.cc @@ -3,6 +3,11 @@ #include #include "kingate/plaincgi.h" #include "kingate/exception.h" +#include "config.h" + +#if !HAVE_DECL_ENVIRON +extern char **environ; +#endif /* HAVE_DECL_ENVIRON */ namespace kingate { -- cgit v0.9.0.2