You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 
 
 
 

193 lines
6.1 KiB

Index: et/com_err.c
--- et/com_err.c.orig 2004-05-22 05:45:47 +0200
+++ et/com_err.c 2007-02-08 09:24:55 +0100
@@ -51,7 +51,7 @@
#include <string.h>
#include "mit-sipb-copyright.h"
-#if defined(HAVE_STDARG_H) || defined(_WINDOWS)
+#if defined(HAVE_STDARG_H) || defined(__STDC__) || defined(_WINDOWS)
#include <stdarg.h>
#else
#include <varargs.h>
Index: et/com_err.h
--- et/com_err.h.orig 2003-02-13 21:15:21 +0100
+++ et/com_err.h 2007-02-08 09:24:55 +0100
@@ -99,5 +99,7 @@
extern void (*reset_com_err_hook ()) ();
#endif
+struct et_list;
+
#define __COM_ERR_H
#endif /* ! defined(__COM_ERR_H) */
Index: imap/fud.c
--- imap/fud.c.orig 2007-02-05 19:41:46 +0100
+++ imap/fud.c 2007-02-08 09:24:55 +0100
@@ -104,26 +104,26 @@
char who[16];
-#define MAXLOGNAME 16 /* should find out for real */
-#define MAXDOMNAME 20 /* should find out for real */
+#define MY_MAXLOGNAME 16 /* should find out for real */
+#define MY_MAXDOMNAME 20 /* should find out for real */
int begin_handling(void)
{
struct sockaddr_storage sfrom;
socklen_t sfromsiz = sizeof(sfrom);
int r;
- char buf[MAXLOGNAME + MAXDOMNAME+ MAX_MAILBOX_NAME + 1];
- char username[MAXLOGNAME + MAXDOMNAME];
+ char buf[MY_MAXLOGNAME + MY_MAXDOMNAME+ MAX_MAILBOX_NAME + 1];
+ char username[MY_MAXLOGNAME + MY_MAXDOMNAME];
char mbox[MAX_MAILBOX_NAME+1];
char *q;
int off;
- int maxuserlen = MAXLOGNAME + config_virtdomains ? MAXDOMNAME : 0;
+ int maxuserlen = MY_MAXLOGNAME + config_virtdomains ? MY_MAXDOMNAME : 0;
while(1) {
/* For safety */
- memset(username,'\0',MAXLOGNAME + MAXDOMNAME);
+ memset(username,'\0',MY_MAXLOGNAME + MY_MAXDOMNAME);
memset(mbox,'\0',MAX_MAILBOX_NAME+1);
- memset(buf, '\0', MAXLOGNAME + MAX_MAILBOX_NAME + 1);
+ memset(buf, '\0', MY_MAXLOGNAME + MAX_MAILBOX_NAME + 1);
if (signals_poll() == SIGHUP) {
/* caught a SIGHUP, return */
Index: imap/idled.c
--- imap/idled.c.orig 2007-02-05 19:41:46 +0100
+++ imap/idled.c 2007-02-08 09:24:55 +0100
@@ -50,6 +50,7 @@
#include <syslog.h>
#include <sys/stat.h>
#include <stdlib.h>
+#include <string.h>
#include <errno.h>
#ifdef HAVE_UNISTD_H
#include <unistd.h>
Index: imap/mboxname.c
--- imap/mboxname.c.orig 2006-11-30 18:11:19 +0100
+++ imap/mboxname.c 2007-02-08 09:24:55 +0100
@@ -128,7 +128,11 @@
sprintf(result, "%s!", cp);
}
}
+#ifdef ATVDOM /* allow '@' being a regular character in mboxname even when using virtual domains */
+ else if ((cp = strrchr(name, '@'))) {
+#else
if ((cp = strrchr(name, '@'))) {
+#endif /* ATVDOM */
/* mailbox specified as mbox@domain */
namelen = cp - name;
Index: imap/sync_log.c
--- imap/sync_log.c.orig 2007-02-05 19:41:48 +0100
+++ imap/sync_log.c 2007-02-08 09:24:55 +0100
@@ -57,6 +57,7 @@
#include <varargs.h>
#endif
#include <stdlib.h>
+#include <string.h>
#include <stdio.h>
#include <string.h>
#include <syslog.h>
Index: imap/xversion.sh
--- imap/xversion.sh.orig 2003-10-22 20:03:00 +0200
+++ imap/xversion.sh 2007-02-08 09:24:55 +0100
@@ -22,4 +22,4 @@
match ($0, pattern) {
printf "\"%s\"\n", substr($0, RSTART, RLENGTH)
}' pattern="$DATEPAT $TIMEPAT" | \
- sort | tail -1 >> xversion.h
+ sort | sed -n -e '$p' >> xversion.h
Index: lib/cyrusdb_berkeley.c
--- lib/cyrusdb_berkeley.c.orig 2007-02-05 19:43:26 +0100
+++ lib/cyrusdb_berkeley.c 2007-02-08 09:24:55 +0100
@@ -172,6 +172,7 @@
dbenv->set_lk_detect(dbenv, CONFIG_DEADLOCK_DETECTION);
+#if (DB_VERSION_MAJOR < 4) || (DB_VERSION_MAJOR == 4 && DB_VERSION_MINOR < 5)
if ((opt = libcyrus_config_getint(CYRUSOPT_BERKELEY_LOCKS_MAX)) < 0) {
syslog(LOG_WARNING,
"DBERROR: invalid berkeley_locks_max value, using internal default");
@@ -183,6 +184,7 @@
abort();
}
}
+#endif
if ((opt = libcyrus_config_getint(CYRUSOPT_BERKELEY_TXNS_MAX)) < 0) {
syslog(LOG_WARNING,
Index: lib/cyrusdb_skiplist.c
--- lib/cyrusdb_skiplist.c.orig 2007-02-05 19:43:26 +0100
+++ lib/cyrusdb_skiplist.c 2007-02-08 09:24:55 +0100
@@ -74,6 +74,13 @@
#define PROB (0.5)
+#if defined(__FreeBSD__) || defined(__NetBSD__) || defined(__OpenBSD__)
+/* #define fdatasync(fd) fsync(fd) */
+#ifndef O_DSYNC
+#define O_DSYNC 0
+#endif
+#endif
+
/*
*
* disk format; all numbers in network byte order
Index: lib/prot.h
--- lib/prot.h.orig 2006-11-30 18:11:22 +0100
+++ lib/prot.h 2007-02-08 09:24:55 +0100
@@ -49,6 +49,7 @@
#include <time.h>
#include <stdio.h>
#include <stdlib.h>
+#include <sys/time.h>
#include <sasl/sasl.h>
Index: perl/Makefile.in
--- perl/Makefile.in.orig 2003-10-22 20:50:17 +0200
+++ perl/Makefile.in 2007-02-08 09:24:55 +0100
@@ -82,7 +82,8 @@
BDB_LIB="$(BDB_LIB)" BDB_INC="$(BDB_INC)" \
OPENSSL_LIB="$(OPENSSL_LIB)" OPENSSL_INC="$(OPENSSL_INC)" \
SASL_LIB="$(SASL_LIB)" SASL_INC="$(SASL_INC)" CC="$(CC)" \
- $(PERL) Makefile.PL PREFIX=$(prefix); \
+ $(PERL) Makefile.PL PREFIX=$(prefix) \
+ INSTALLDIRS="vendor" INSTALLMAN3DIR="none" INSTALLSITEMAN3DIR="none" INSTALLVENDORMAN3DIR="none"; \
fi; \
$(MAKE) $(MFLAGS) DESTDIR=$(DESTDIR) all) || exit 1; \
done
Index: perl/sieve/Makefile.in
--- perl/sieve/Makefile.in.orig 2003-10-22 20:50:24 +0200
+++ perl/sieve/Makefile.in 2007-02-08 09:24:55 +0100
@@ -84,7 +84,8 @@
BDB_LIB="$(BDB_LIB)" BDB_INC="$(BDB_INC)" \
OPENSSL_LIB="$(OPENSSL_LIB)" OPENSSL_INC="$(OPENSSL_INC)" \
SASL_LIB="$(SASL_LIB)" SASL_INC="$(SASL_INC)" CC="$(CC)" \
- $(PERL) Makefile.PL PREFIX=$(prefix); \
+ $(PERL) Makefile.PL PREFIX=$(prefix) \
+ INSTALLDIRS="vendor" INSTALLMAN3DIR="none" INSTALLSITEMAN3DIR="none" INSTALLVENDORMAN3DIR="none"; \
fi; \
$(MAKE) $(MFLAGS) DESTDIR=$(DESTDIR) all) || exit 1; \
done
Index: perl/sieve/lib/isieve.c
--- perl/sieve/lib/isieve.c.orig 2006-11-30 18:11:24 +0100
+++ perl/sieve/lib/isieve.c 2007-02-08 09:24:55 +0100
@@ -41,9 +41,7 @@
/* $Id: isieve.c,v 1.30 2006/11/30 17:11:24 murch Exp $ */
-#ifdef HAVE_CONFIG_H
-#include <config.h>
-#endif
+#include "../../../config.h"
#ifdef HAVE_UNISTD_H
#include <unistd.h>