From f5c88139c9df818e4720fb96e25c8d8b2b130d4d Mon Sep 17 00:00:00 2001 From: Kern Sibbald Date: Mon, 29 Sep 2008 21:28:32 +0000 Subject: [PATCH] Fix Win32 build after Joao's patch git-svn-id: https://bacula.svn.sourceforge.net/svnroot/bacula/trunk@7666 91ce42f0-d328-0410-95d8-f526ca767f89 --- bacula/src/cats/sql.c | 4 ++-- bacula/src/cats/sql_list.c | 2 ++ 2 files changed, 4 insertions(+), 2 deletions(-) diff --git a/bacula/src/cats/sql.c b/bacula/src/cats/sql.c index f5e9baf4dc..052d37af49 100644 --- a/bacula/src/cats/sql.c +++ b/bacula/src/cats/sql.c @@ -50,7 +50,7 @@ uint32_t bacula_db_version = 0; -int db_type = -1; +int db_type = -1; /* SQL engine type index */ /* Forward referenced subroutines */ void print_dashes(B_DB *mdb); @@ -710,7 +710,7 @@ bool db_open_batch_connexion(JCR *jcr, B_DB *mdb) int multi_db=false; #ifdef HAVE_BATCH_FILE_INSERT - multi_db=true; /* we force a new connexion only if batch insert is enabled */ + multi_db=true; /* we force a new connexion only if batch insert is enabled */ #endif if (!jcr->db_batch) { diff --git a/bacula/src/cats/sql_list.c b/bacula/src/cats/sql_list.c index 33765bf874..9b70cb9646 100644 --- a/bacula/src/cats/sql_list.c +++ b/bacula/src/cats/sql_list.c @@ -42,6 +42,8 @@ #include "bacula.h" #include "cats.h" +extern int db_type; + #if HAVE_SQLITE3 || HAVE_MYSQL || HAVE_SQLITE || HAVE_POSTGRESQL || HAVE_DBI /* ----------------------------------------------------------------------- -- 2.39.5