summaryrefslogtreecommitdiff
path: root/src/main.cc
diff options
context:
space:
mode:
Diffstat (limited to 'src/main.cc')
-rw-r--r--src/main.cc4
1 files changed, 4 insertions, 0 deletions
diff --git a/src/main.cc b/src/main.cc
index 6be50910..02bb335b 100644
--- a/src/main.cc
+++ b/src/main.cc
@@ -50,15 +50,19 @@ namespace {
}
}
+#ifdef HAVE_BOOST_PYTHON
namespace ledger {
extern char * argv0;
}
+#endif
int main(int argc, char * argv[], char * envp[])
{
int status;
+#ifdef HAVE_BOOST_PYTHON
argv0 = argv[0];
+#endif
// The very first thing we do is handle some very special command-line
// options, since they affect how the environment is setup: