From dcac3064670e6b4f4b8759d9adf54e8569ec4786 Mon Sep 17 00:00:00 2001 From: John Wiegley Date: Tue, 3 Mar 2009 22:13:36 -0400 Subject: Corrected a build error if Python support missing --- src/main.cc | 4 ++++ 1 file changed, 4 insertions(+) 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: -- cgit v1.2.3