From 7fc21b0272ad1e514c4461d10f75e1a79199f4c8 Mon Sep 17 00:00:00 2001 From: deva Date: Mon, 5 Jul 2010 07:06:53 +0000 Subject: Partial commit (final): Add missing headers, fixing gcc4.4 compile errors. --- server/src/configuration.h | 1 + server/src/httpd.cc | 2 ++ server/src/pracrodaotest.h | 1 + server/src/queryparser.cc | 2 ++ server/src/saxparser.cc | 1 + server/src/server.cc | 1 + server/src/session.cc | 1 + server/src/sessionparser.cc | 2 ++ server/src/templateparser.cc | 6 ++++-- server/src/versionstr.cc | 1 + 10 files changed, 16 insertions(+), 2 deletions(-) (limited to 'server') diff --git a/server/src/configuration.h b/server/src/configuration.h index 8980bfd..b6adadc 100644 --- a/server/src/configuration.h +++ b/server/src/configuration.h @@ -31,6 +31,7 @@ #include #include +#include typedef uint16_t port_t; diff --git a/server/src/httpd.cc b/server/src/httpd.cc index 9150520..e3c287e 100644 --- a/server/src/httpd.cc +++ b/server/src/httpd.cc @@ -29,6 +29,8 @@ #include #include +#include +#include // For fork #include diff --git a/server/src/pracrodaotest.h b/server/src/pracrodaotest.h index 9278b3f..6ac0e73 100644 --- a/server/src/pracrodaotest.h +++ b/server/src/pracrodaotest.h @@ -33,6 +33,7 @@ #include #include +#include #include "pracrodao.h" diff --git a/server/src/queryparser.cc b/server/src/queryparser.cc index db562ae..d8f36ee 100644 --- a/server/src/queryparser.cc +++ b/server/src/queryparser.cc @@ -26,6 +26,8 @@ */ #include "queryparser.h" +#include + QueryParser::QueryParser() { this->timestamp = 0; diff --git a/server/src/saxparser.cc b/server/src/saxparser.cc index 6861fab..4a1657c 100644 --- a/server/src/saxparser.cc +++ b/server/src/saxparser.cc @@ -28,6 +28,7 @@ #include "debug.h" #include +#include static void character_hndl(void *p, const XML_Char *s, int len) { diff --git a/server/src/server.cc b/server/src/server.cc index 0f77866..9177c79 100644 --- a/server/src/server.cc +++ b/server/src/server.cc @@ -27,6 +27,7 @@ #include "server.h" #include +#include #include "httpd.h" #include "configuration.h" diff --git a/server/src/session.cc b/server/src/session.cc index 700f370..5fe9230 100644 --- a/server/src/session.cc +++ b/server/src/session.cc @@ -28,6 +28,7 @@ #include "session.h" #include +#include // for stat #include diff --git a/server/src/sessionparser.cc b/server/src/sessionparser.cc index 0edb26a..fef0f09 100644 --- a/server/src/sessionparser.cc +++ b/server/src/sessionparser.cc @@ -27,6 +27,8 @@ */ #include "sessionparser.h" +#include + #include "debug.h" SessionParser::SessionParser() diff --git a/server/src/templateparser.cc b/server/src/templateparser.cc index e6a0f2e..b3eda22 100644 --- a/server/src/templateparser.cc +++ b/server/src/templateparser.cc @@ -25,8 +25,6 @@ * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA. */ #include "templateparser.h" -#include "configuration.h" -#include "debug.h" // For assert #include @@ -43,6 +41,10 @@ #include #include +#include + +#include "configuration.h" +#include "debug.h" #include "exception.h" void TemplateParser::error(const char* fmt, ...) diff --git a/server/src/versionstr.cc b/server/src/versionstr.cc index 6069dce..c4f82c9 100644 --- a/server/src/versionstr.cc +++ b/server/src/versionstr.cc @@ -29,6 +29,7 @@ #include #include +#include // Workaround - major, minor and patch are defined as macros when using _GNU_SOURCES #ifdef major -- cgit v1.2.3