pkgsrc/mail/evolution/patches/patch-aj
rh 20a15f7e9a Fix db3 version check so that addressbook now finally works.
Bump PKGREVISION.
This closes PR pkg/18164 by Ales Krenek <ljocha@ics.muni.cz>
2002-09-05 23:25:27 +00:00

30 lines
859 B
Text

$NetBSD: patch-aj,v 1.6 2002/09/05 23:25:27 rh Exp $
--- addressbook/backend/pas/pas-backend-file.c.orig Sun Jun 16 08:54:02 2002
+++ addressbook/backend/pas/pas-backend-file.c
@@ -21,9 +21,9 @@
#include <e-util/e-db3-utils.h>
#if DB_VERSION_MAJOR != 3 || \
- DB_VERSION_MINOR != 1 || \
- DB_VERSION_PATCH != 17
-#error Including wrong DB3. Need libdb 3.1.17.
+ DB_VERSION_MINOR != 3 || \
+ DB_VERSION_PATCH != 11
+#error Including wrong DB3. Need libdb 3.3.11.
#endif
#include <gtk/gtksignal.h>
@@ -1244,9 +1244,9 @@
db_version (&major, &minor, &patch);
- if (major != 3 ||
- minor != 1 ||
- patch != 17) {
+ if (major != DB_VERSION_MAJOR ||
+ minor != DB_VERSION_MINOR ||
+ patch != DB_VERSION_PATCH) {
g_warning ("Wrong version of libdb.");
return GNOME_Evolution_Addressbook_BookListener_OtherError;
}