Add patch to fix some test issues on big-endian machines.

This commit is contained in:
Jason Tibbitts 2017-05-26 12:39:43 -05:00
parent 5d37ee86be
commit c43a3db86d
3 changed files with 25 additions and 0 deletions

1
.gitignore vendored
View File

@ -6,3 +6,4 @@
/cyrus-imapd-*/
/cassandane-testdata-20170523.tar.gz
/cassandane-b97ba9c.tar.gz
/cassandane-0a6c13e.tar.gz

View File

@ -25,6 +25,8 @@ License: BSD
URL: http://www.cyrusimap.org/
Source0: http://www.cyrusimap.org/releases/%name-%version.tar.gz
Patch0: patch-cyrus-testsuite-endianness
Source10: cyrus-imapd.logrotate
Source11: cyrus-imapd.pam-config
Source12: cyrus-imapd.sysconfig

View File

@ -0,0 +1,22 @@
diff --git a/cunit/timeout.c b/cunit/timeout.c
index f02c9ac..a444ac8 100644
--- a/cunit/timeout.c
+++ b/cunit/timeout.c
@@ -197,7 +197,7 @@ int timeout_init(void (*cb)(void))
int timeout_begin(int millisec)
{
- int c;
+ char c;
int r;
// fprintf(stderr, "timeout_begin\n");
@@ -220,7 +220,7 @@ int timeout_begin(int millisec)
int timeout_end(void)
{
- int c;
+ char c;
int r;
// fprintf(stderr, "timeout_end\n");