]> git.sur5r.net Git - bacula/bacula/blob - bacula/patches/2.0.x/2.2.7-old-postgresql.patch
Move
[bacula/bacula] / bacula / patches / 2.0.x / 2.2.7-old-postgresql.patch
1
2  If you have an old version of PostgreSQL, for example,
3  version 7.3 or older, it may not properly build with the current
4  Bacula release due to incompatible changes in the PostgreSQL
5  header files between version.  Only in the case that build fails,
6  you might try applying this patch with:
7
8  cd <bacula-2.2.7-source>
9  patch -p1 <2.2.7-old-postgresql.patch
10  ./configure <your-options>
11  make
12  ...
13  make install
14
15
16 diff -uNr bacula-2.2.7/src/cats/postgresql.c bacula-2.2.7-fixed/src/cats/postgresql.c
17 --- bacula-2.2.7/src/cats/postgresql.c  2007-12-08 04:54:55.000000000 -0500
18 +++ bacula-2.2.7-fixed/src/cats/postgresql.c    2007-12-29 08:34:10.000000000 -0500
19 @@ -47,7 +47,6 @@
20  #ifdef HAVE_POSTGRESQL
21  
22  #include "postgres_ext.h"       /* needed for NAMEDATALEN */
23 -#include "pg_config_manual.h"   /* get NAMEDATALEN on version 8.3 or later */
24  
25  /* -----------------------------------------------------------------------
26   *