1
0
mirror of https://git.openwrt.org/feed/packages.git synced 2025-05-08 19:40:23 +08:00
packages/mail/mailsend/patches/010-gcc14.patch
Rosen Penev 4471b94ae7 mailsend: fix compilation with GCC14
Also fix CFLAGS not being passed.

Signed-off-by: Rosen Penev <rosenp@gmail.com>
2025-05-01 22:03:21 +02:00

17 lines
499 B
Diff

--- a/main.c
+++ b/main.c
@@ -965,8 +965,13 @@ int main(int argc,char **argv)
}
else if (strncmp("show-mime-types",option+1,9) == 0)
{
+#ifdef HAVE_OPENSSL
show_mime_types();
rc = 0;
+#else
+ (void) fprintf(stderr,"Error: '-show-mime-types' not available, not compiled with OpenSSL\n");
+ rc = 1;
+#endif
goto ExitProcessing;
}