cyrus-sasl: fix for gcc 14

This commit is contained in:
Owen Rafferty 2024-06-02 14:58:21 -05:00
parent f5c6392506
commit e602311afd
No known key found for this signature in database
4 changed files with 30 additions and 0 deletions

View File

@ -1,5 +1,7 @@
#!/bin/sh -e
patch -p1 < gcc-14.patch
./configure \
--prefix=/usr \
--sysconfdir=/etc \

View File

@ -1 +1,2 @@
87db3e916cf98c1c3a003323bb44c7d64659ba011a623953fb52e6f35781586c27
d71319a924454499bdb763e4d4db8c0a235c4cbebc9f23e3d85d8749ce7252bdd7

View File

@ -0,0 +1,26 @@
diff --git a/lib/saslutil.c b/lib/saslutil.c
index 46c628c..ecb4b62 100644
--- a/lib/saslutil.c
+++ b/lib/saslutil.c
@@ -59,9 +59,7 @@
#ifdef HAVE_UNISTD_H
#include <unistd.h>
#endif
-#ifdef HAVE_TIME_H
#include <time.h>
-#endif
#include "saslint.h"
#include <saslutil.h>
diff --git a/plugins/cram.c b/plugins/cram.c
index d02e9ba..5dc4fba 100644
--- a/plugins/cram.c
+++ b/plugins/cram.c
@@ -48,6 +48,7 @@
#include <string.h>
#include <stdlib.h>
#include <stdio.h>
+#include <time.h>
#ifndef macintosh
#include <sys/stat.h>
#endif

View File

@ -1 +1,2 @@
https://github.com/cyrusimap/cyrus-sasl/releases/download/cyrus-sasl-2.1.28/cyrus-sasl-2.1.28.tar.gz
patches/gcc-14.patch