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:
8 cd <bacula-2.2.7-source>
9 patch -p1 <2.2.7-old-postgresql.patch
10 ./configure <your-options>
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
20 #ifdef HAVE_POSTGRESQL
22 #include "postgres_ext.h" /* needed for NAMEDATALEN */
23 -#include "pg_config_manual.h" /* get NAMEDATALEN on version 8.3 or later */
25 /* -----------------------------------------------------------------------