aboutsummaryrefslogtreecommitdiffstats
path: root/mail
diff options
context:
space:
mode:
authorroam <roam@FreeBSD.org>2006-10-09 01:29:02 +0800
committerroam <roam@FreeBSD.org>2006-10-09 01:29:02 +0800
commit279408a96770beb6a485a4a95d1b59ddee0c4dcf (patch)
treec3a71350c3997fc13d1ec83e0df32040b622ba25 /mail
parentdfb0830b4473ee6802f00bd8af118db372567480 (diff)
downloadfreebsd-ports-gnome-279408a96770beb6a485a4a95d1b59ddee0c4dcf.tar.gz
freebsd-ports-gnome-279408a96770beb6a485a4a95d1b59ddee0c4dcf.tar.zst
freebsd-ports-gnome-279408a96770beb6a485a4a95d1b59ddee0c4dcf.zip
Make the PostgreSQL backend actually compile with the new
WITH_SQL_LOG_REMOVE_DELETED knob - fix the name of a variable and a standard PostgreSQL routine. Pointy hat to: roam (myself), in addition to the upstream developers
Diffstat (limited to 'mail')
-rw-r--r--mail/vpopmail/files/patch-vpgsql.c20
1 files changed, 12 insertions, 8 deletions
diff --git a/mail/vpopmail/files/patch-vpgsql.c b/mail/vpopmail/files/patch-vpgsql.c
index 2069f1e4c8de..a1325d9a6bf5 100644
--- a/mail/vpopmail/files/patch-vpgsql.c
+++ b/mail/vpopmail/files/patch-vpgsql.c
@@ -1,6 +1,6 @@
diff -urN -x .svn ../../vendor/vpopmail/vpgsql.c ./vpgsql.c
--- ../../vendor/vpopmail/vpgsql.c Wed Oct 4 13:19:16 2006
-+++ ./vpgsql.c Wed Oct 4 21:26:53 2006
++++ ./vpgsql.c Sun Oct 8 17:20:54 2006
@@ -16,6 +16,7 @@
* along with this program; if not, write to the Free Software
* Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA
@@ -9,15 +9,17 @@ diff -urN -x .svn ../../vendor/vpopmail/vpgsql.c ./vpgsql.c
#include <pwd.h>
#include <unistd.h>
#include <stdio.h>
-@@ -389,6 +390,7 @@
+@@ -389,13 +390,15 @@
#endif
#ifdef ENABLE_SQL_LOGGING
+- qnprintf( sqlBufUpdate, SQL_BUF_SIZE,
+#ifdef ENABLE_SQL_REMOVE_DELETED
- qnprintf( sqlBufUpdate, SQL_BUF_SIZE,
++ qnprintf( SqlBufUpdate, SQL_BUF_SIZE,
"delete from vlog where domain = '%s'", domain );
pgres=PQexec(pgc, SqlBufUpdate);
-@@ -396,6 +398,7 @@
+- if( !pgres || PGresultStatus(pgres)!=PGRES_COMMAND_OK) {
++ if( !pgres || PQresultStatus(pgres)!=PGRES_COMMAND_OK) {
return(-1);
}
#endif
@@ -25,16 +27,18 @@ diff -urN -x .svn ../../vendor/vpopmail/vpgsql.c ./vpgsql.c
return(0);
}
-@@ -442,6 +445,7 @@
+@@ -442,13 +445,15 @@
#endif
#ifdef ENABLE_SQL_LOGGING
+- qnprintf( sqlBufUpdate, SQL_BUF_SIZE,
+#ifdef ENABLE_SQL_REMOVE_DELETED
- qnprintf( sqlBufUpdate, SQL_BUF_SIZE,
++ qnprintf( SqlBufUpdate, SQL_BUF_SIZE,
"delete from vlog where domain = '%s' and user='%s'",
domain, user );
-@@ -449,6 +453,7 @@
- if( !pgres || PGresultStatus(pgres)!=PGRES_COMMAND_OK) {
+ pgres=PQexec(pgc, SqlBufUpdate);
+- if( !pgres || PGresultStatus(pgres)!=PGRES_COMMAND_OK) {
++ if( !pgres || PQresultStatus(pgres)!=PGRES_COMMAND_OK) {
err = -1;
}
+#endif