summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authordeva <deva>2010-07-05 07:06:53 +0000
committerdeva <deva>2010-07-05 07:06:53 +0000
commit7fc21b0272ad1e514c4461d10f75e1a79199f4c8 (patch)
tree965b92b1ed991af9d44416cc20249be4ef50f14c
parentbb405bf5f92f1d41073325d7619b009e134554a6 (diff)
Partial commit (final): Add missing headers, fixing gcc4.4 compile errors.
-rw-r--r--server/src/configuration.h1
-rw-r--r--server/src/httpd.cc2
-rw-r--r--server/src/pracrodaotest.h1
-rw-r--r--server/src/queryparser.cc2
-rw-r--r--server/src/saxparser.cc1
-rw-r--r--server/src/server.cc1
-rw-r--r--server/src/session.cc1
-rw-r--r--server/src/sessionparser.cc2
-rw-r--r--server/src/templateparser.cc6
-rw-r--r--server/src/versionstr.cc1
10 files changed, 16 insertions, 2 deletions
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 <time.h>
#include <sys/types.h>
+#include <stdint.h>
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 <errno.h>
#include <stdlib.h>
+#include <stdint.h>
+#include <stdio.h>
// For fork
#include <sys/types.h>
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 <map>
#include <config.h>
+#include <stdio.h>
#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 <stdio.h>
+
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 <string.h>
+#include <stdio.h>
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 <config.h>
+#include <stdio.h>
#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 <stdlib.h>
+#include <stdio.h>
// for stat
#include <sys/types.h>
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 <stdio.h>
+
#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 <assert.h>
@@ -43,6 +41,10 @@
#include <errno.h>
#include <string.h>
+#include <stdio.h>
+
+#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 <memory.h>
#include <stdlib.h>
+#include <stdio.h>
// Workaround - major, minor and patch are defined as macros when using _GNU_SOURCES
#ifdef major