]> git.sur5r.net Git - bacula/bacula/commitdiff
Fix undefined in non-Python build.
authorKern Sibbald <kern@sibbald.com>
Sun, 19 Dec 2004 20:43:38 +0000 (20:43 +0000)
committerKern Sibbald <kern@sibbald.com>
Sun, 19 Dec 2004 20:43:38 +0000 (20:43 +0000)
git-svn-id: https://bacula.svn.sourceforge.net/svnroot/bacula/trunk@1767 91ce42f0-d328-0410-95d8-f526ca767f89

bacula/src/dird/backup.c
bacula/src/dird/python.c
bacula/src/lib/python.c

index 613e13b2d86a60649ecbd7b3ae3a5ca42158a5a3..5ef4d3a572bdc61f074adacc5990edf670374fc8 100644 (file)
@@ -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;
    }
index dc188d0766f5e1204a8f6ff377d1f94f53070e52..9e7d57f192bea44a1df6cf348240b8ab022cceef 100644 (file)
@@ -33,6 +33,7 @@
 #include "dird.h"
 
 #ifdef HAVE_PYTHON
+#undef _POSIX_C_SOURCE
 #include <Python.h>
 
 bool run_module(const char *module);
index 789ea749d6f741de1d761a4c33dc3102af3fe6d2..191ffd61e16a9fb5aa2ba0842f339902b3c5672b 100644 (file)
 
 #include "bacula.h"
 
+EVENT_HANDLER *generate_event;
+
 #ifdef HAVE_PYTHON
+#undef _POSIX_C_SOURCE
 #include <Python.h>
 
-EVENT_HANDLER *generate_event;
 
 PyObject *bacula_get(PyObject *self, PyObject *args);
 PyObject *bacula_set(PyObject *self, PyObject *args, PyObject *keyw);