0
0
mirror of https://github.com/openwrt/packages.git synced 2025-02-07 09:19:51 +00:00
packages/libs/cyrus-sasl/patches/010-gcc14.patch
Rosen Penev 4189202d7e cyrus-sasl: fix compilation with GCC14
Missing time.h header.

Signed-off-by: Rosen Penev <rosenp@gmail.com>
2024-05-21 17:59:42 -07:00

33 lines
613 B
Diff

--- 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>
--- 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
--- a/plugins/digestmd5.c
+++ b/plugins/digestmd5.c
@@ -50,6 +50,7 @@
#include <stdlib.h>
#include <stdio.h>
#include <string.h>
+#include <time.h>
#ifndef macintosh
#include <sys/types.h>
#include <sys/stat.h>