summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorNathan Jones <nathanj@insightbb.com>2008-05-11 19:53:20 -0400
committerJohn Wiegley <johnw@newartisans.com>2008-05-20 17:13:34 -0600
commit780135281dfdf3f8088f6e4279e84dc86eb94907 (patch)
tree9090ac6061c5031db83c216ab92d8ca827fc74f9
parent627769ccc88ae15c92c5c2e5896bb1d96f52e385 (diff)
downloadfork-ledger-780135281dfdf3f8088f6e4279e84dc86eb94907.tar.gz
fork-ledger-780135281dfdf3f8088f6e4279e84dc86eb94907.tar.bz2
fork-ledger-780135281dfdf3f8088f6e4279e84dc86eb94907.zip
Fix compile errors with gcc 4.3
-rw-r--r--amount.cc1
-rw-r--r--datetime.cc1
-rw-r--r--textual.cc1
3 files changed, 3 insertions, 0 deletions
diff --git a/amount.cc b/amount.cc
index 4f07b0b0..f9b6fc29 100644
--- a/amount.cc
+++ b/amount.cc
@@ -4,6 +4,7 @@
#include <list>
#include <sstream>
#include <cstdlib>
+#include <memory>
#include <gmp.h>
diff --git a/datetime.cc b/datetime.cc
index 040c3046..d766e00c 100644
--- a/datetime.cc
+++ b/datetime.cc
@@ -7,6 +7,7 @@
#include <ctime>
#include <cctype>
+#include <climits>
date_t date_t::now(std::time(NULL));
int date_t::current_year = date_t::now.year();
diff --git a/textual.cc b/textual.cc
index 44ee354c..4e899eea 100644
--- a/textual.cc
+++ b/textual.cc
@@ -19,6 +19,7 @@
#include <cctype>
#include <cstdio>
#include <cstdlib>
+#include <climits>
#ifdef HAVE_REALPATH
extern "C" char *realpath(const char *, char resolved_path[]);