-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 @@ | |||
1 | #include <unistd.h> | 1 | #include <unistd.h> |
2 | #include <sys/types.h> | 2 | #include <sys/types.h> |
3 | #include <sys/stat.h> | 3 | #include <sys/stat.h> |
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 { |
8 | 13 | ||
9 | plaincgi_interface::plaincgi_interface() { | 14 | plaincgi_interface::plaincgi_interface() { |
10 | for(char **p = environ; *p; p++) { | 15 | for(char **p = environ; *p; p++) { |
11 | const char *e = strchr(*p,'='); | 16 | const char *e = strchr(*p,'='); |
12 | if(!e){ | 17 | if(!e){ |
13 | // XXX: check if we have it already? | 18 | // XXX: check if we have it already? |