author | Michael Krelin <hacker@klever.net> | 2005-02-13 21:48:37 (UTC) |
---|---|---|
committer | Michael Krelin <hacker@klever.net> | 2005-02-13 21:48:37 (UTC) |
commit | ace26447603d3f7ecd82fd3910174f603c2c7464 (patch) (side-by-side diff) | |
tree | 3a82346bd7fff177f74424ed61a6a2c6aa7a308e /src/plaincgi.cc | |
parent | 4fa4a0071ef9a04c02f8934b2e1d3b7628a65c80 (diff) | |
download | kingate-ace26447603d3f7ecd82fd3910174f603c2c7464.zip kingate-ace26447603d3f7ecd82fd3910174f603c2c7464.tar.gz kingate-ace26447603d3f7ecd82fd3910174f603c2c7464.tar.bz2 |
portabiity improvements
-rw-r--r-- | src/plaincgi.cc | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/src/plaincgi.cc b/src/plaincgi.cc index 6934748..1cb7dc6 100644 --- a/src/plaincgi.cc +++ b/src/plaincgi.cc @@ -1,13 +1,18 @@ #include <unistd.h> #include <sys/types.h> #include <sys/stat.h> #include "kingate/plaincgi.h" #include "kingate/exception.h" +#include "config.h" + +#if !HAVE_DECL_ENVIRON +extern char **environ; +#endif /* HAVE_DECL_ENVIRON */ namespace kingate { plaincgi_interface::plaincgi_interface() { for(char **p = environ; *p; p++) { const char *e = strchr(*p,'='); if(!e){ // XXX: check if we have it already? |