diff options
author | Alon Bar-Lev <alonbl@gentoo.org> | 2006-10-28 22:50:34 +0000 |
---|---|---|
committer | Alon Bar-Lev <alonbl@gentoo.org> | 2006-10-28 22:50:34 +0000 |
commit | 321e292139599ab3e1cd0dc4dda1e45377e62b75 (patch) | |
tree | c7d0b92feaa3ab4f15292a872b1c0183ce6b5ff9 /app-crypt/xca/files | |
parent | Initial import. Ebuild submitted by jano #153137. (diff) | |
download | gentoo-2-321e292139599ab3e1cd0dc4dda1e45377e62b75.tar.gz gentoo-2-321e292139599ab3e1cd0dc4dda1e45377e62b75.tar.bz2 gentoo-2-321e292139599ab3e1cd0dc4dda1e45377e62b75.zip |
Added db4.3 compatability, thanks to Tomas Sedlak, closes bug#153156
(Portage version: 2.1.1)
Diffstat (limited to 'app-crypt/xca/files')
-rw-r--r-- | app-crypt/xca/files/xca-0.5.1-db.patch | 30 |
1 files changed, 30 insertions, 0 deletions
diff --git a/app-crypt/xca/files/xca-0.5.1-db.patch b/app-crypt/xca/files/xca-0.5.1-db.patch new file mode 100644 index 000000000000..d4b426bd791c --- /dev/null +++ b/app-crypt/xca/files/xca-0.5.1-db.patch @@ -0,0 +1,30 @@ +diff -urNp xca-0.5.1.org/widgets/MainWindow.cpp xca-0.5.1/widgets/MainWindow.cpp +--- xca-0.5.1.org/widgets/MainWindow.cpp 2004-06-14 00:22:37.000000000 +0300 ++++ xca-0.5.1/widgets/MainWindow.cpp 2006-10-29 00:42:07.000000000 +0200 +@@ -445,7 +445,11 @@ void MainWindow::Error(errorEx &err) + } + } + ++#if DB_VERSION_MINOR < 3 + void MainWindow::dberr(const char *errpfx, char *msg) ++#else ++void MainWindow::dberr(const DbEnv *dbEnv, const char *errpfx, const char *msg) ++#endif + { + errorEx e(QString(errpfx) + "\n" + msg); + Error(e); +diff -urNp xca-0.5.1.org/widgets/MainWindow.h xca-0.5.1/widgets/MainWindow.h +--- xca-0.5.1.org/widgets/MainWindow.h 2004-04-15 02:36:56.000000000 +0300 ++++ xca-0.5.1/widgets/MainWindow.h 2006-10-29 00:43:38.000000000 +0200 +@@ -104,7 +104,11 @@ class MainWindow: public MainWindow_UI + int initPass(); + static int passRead(char *buf, int size, int rwflag, void *userdata); + static int passWrite(char *buf, int size, int rwflag, void *userdata); ++#if DB_VERSION_MINOR < 3 + static void dberr(const char *errpfx, char *msg); ++#else ++ static void dberr(const DbEnv *dbEnv, const char *errpfx, const char *msg); ++#endif + static NewX509 *newX509(); + static QString md5passwd(const char *pass); + static void Error(errorEx &err); |