-rw-r--r-- | configure.ac | 3 | ||||
-rw-r--r-- | src/Makefile.am | 2 | ||||
-rw-r--r-- | src/plaincgi.cc | 5 |
3 files changed, 9 insertions, 1 deletions
diff --git a/configure.ac b/configure.ac index 5ae7b27..b3141f1 100644 --- a/configure.ac +++ b/configure.ac | |||
@@ -12,4 +12,7 @@ AC_PROG_LIBTOOL | |||
12 | AC_HEADER_STDC | 12 | AC_HEADER_STDC |
13 | AC_CHECK_HEADERS([sys/types.h sys/stat.h]) | 13 | AC_CHECK_HEADERS([sys/types.h sys/stat.h]) |
14 | AC_CHECK_DECLS([environ],,,[ | ||
15 | #include <unistd.h> | ||
16 | ]) | ||
14 | 17 | ||
15 | HAVE_FCGI=false | 18 | HAVE_FCGI=false |
diff --git a/src/Makefile.am b/src/Makefile.am index e5c6778..d516d37 100644 --- a/src/Makefile.am +++ b/src/Makefile.am | |||
@@ -5,5 +5,5 @@ lib_LTLIBRARIES += libkingate-fcgi.la | |||
5 | endif | 5 | endif |
6 | 6 | ||
7 | INCLUDES = -I${top_srcdir}/include | 7 | INCLUDES = -I${top_srcdir}/include -I${top_srcdir} |
8 | AM_CXXFLAGS = ${KONFORKA_CFLAGS} | 8 | AM_CXXFLAGS = ${KONFORKA_CFLAGS} |
9 | LDADD = ${KONFORKA_LIBS} | 9 | 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 | |||
@@ -4,4 +4,9 @@ | |||
4 | #include "kingate/plaincgi.h" | 4 | #include "kingate/plaincgi.h" |
5 | #include "kingate/exception.h" | 5 | #include "kingate/exception.h" |
6 | #include "config.h" | ||
7 | |||
8 | #if !HAVE_DECL_ENVIRON | ||
9 | extern char **environ; | ||
10 | #endif /* HAVE_DECL_ENVIRON */ | ||
6 | 11 | ||
7 | namespace kingate { | 12 | namespace kingate { |