cyrus-sasl: fixed the build with gcc 4.4.

This commit is contained in:
Lucas Hazel 2009-09-12 09:01:43 +02:00 committed by Tilman Sauerbeck
parent f79249691d
commit 8e2ed8977e
3 changed files with 25 additions and 2 deletions

View File

@ -1,2 +1,3 @@
7ffb3d7e147470f26041c005847512cf cyrus-sasl-2.1.23-gcc44.patch
2eb0e48106f0e9cd8001e654f267ecbc cyrus-sasl-2.1.23.tar.gz
ec81c1d452216c3da110d7b9a6f8fa8f saslauthd

View File

@ -6,13 +6,15 @@
name=cyrus-sasl
version=2.1.23
release=1
release=2
source=(ftp://ftp.andrew.cmu.edu/pub/cyrus-mail/$name-$version.tar.gz \
saslauthd)
saslauthd $name-$version-gcc44.patch)
build(){
cd $name-$version
patch -p0 -i $SRC/$name-$version-gcc44.patch
./configure \
--prefix=/usr \
--sysconfdir=/etc/sasl \

View File

@ -0,0 +1,20 @@
--- plugins/digestmd5.c~ 2008-11-08 18:28:21.000000000 +0000
+++ plugins/digestmd5.c 2008-11-08 18:28:50.000000000 +0000
@@ -2715,7 +2715,7 @@
"DIGEST-MD5", /* mech_name */
#ifdef WITH_RC4
128, /* max_ssf */
-#elif WITH_DES
+#elif defined(WITH_DES)
112,
#else
1,
@@ -4034,7 +4034,7 @@
"DIGEST-MD5",
#ifdef WITH_RC4 /* mech_name */
128, /* max ssf */
-#elif WITH_DES
+#elif defined(WITH_DES)
112,
#else
1,