From 17bb6a01069f4157ac44ef6ebb2dc23c88f9913e Mon Sep 17 00:00:00 2001 From: Kern Sibbald Date: Sun, 19 Dec 2004 20:43:38 +0000 Subject: [PATCH] Fix undefined in non-Python build. git-svn-id: https://bacula.svn.sourceforge.net/svnroot/bacula/trunk@1767 91ce42f0-d328-0410-95d8-f526ca767f89 --- bacula/src/dird/backup.c | 2 +- bacula/src/dird/python.c | 1 + bacula/src/lib/python.c | 4 +++- 3 files changed, 5 insertions(+), 2 deletions(-) diff --git a/bacula/src/dird/backup.c b/bacula/src/dird/backup.c index 613e13b2d8..5ef4d3a572 100644 --- a/bacula/src/dird/backup.c +++ b/bacula/src/dird/backup.c @@ -182,7 +182,7 @@ int do_backup(JCR *jcr) /* * send Storage daemon address to the File daemon */ - store = (STORE *)jcr->storage[0]->first(); + store = jcr->store; if (store->SDDport == 0) { store->SDDport = store->SDport; } diff --git a/bacula/src/dird/python.c b/bacula/src/dird/python.c index dc188d0766..9e7d57f192 100644 --- a/bacula/src/dird/python.c +++ b/bacula/src/dird/python.c @@ -33,6 +33,7 @@ #include "dird.h" #ifdef HAVE_PYTHON +#undef _POSIX_C_SOURCE #include bool run_module(const char *module); diff --git a/bacula/src/lib/python.c b/bacula/src/lib/python.c index 789ea749d6..191ffd61e1 100644 --- a/bacula/src/lib/python.c +++ b/bacula/src/lib/python.c @@ -30,10 +30,12 @@ #include "bacula.h" +EVENT_HANDLER *generate_event; + #ifdef HAVE_PYTHON +#undef _POSIX_C_SOURCE #include -EVENT_HANDLER *generate_event; PyObject *bacula_get(PyObject *self, PyObject *args); PyObject *bacula_set(PyObject *self, PyObject *args, PyObject *keyw); -- 2.39.5