diffstat for clamsmtp-1.10 clamsmtp-1.10

 changelog            |    7 +++++++
 patches/gcc-15.patch |   24 ++++++++++++++++++++++++
 patches/series       |    1 +
 3 files changed, 32 insertions(+)

diff -Nru clamsmtp-1.10/debian/changelog clamsmtp-1.10/debian/changelog
--- clamsmtp-1.10/debian/changelog	2024-07-04 00:32:02.000000000 +0300
+++ clamsmtp-1.10/debian/changelog	2025-09-20 20:34:16.000000000 +0300
@@ -1,3 +1,10 @@
+clamsmtp (1.10-18.1) unstable; urgency=medium
+
+  * Non-maintainer upload.
+  * Fix FTBFS with GCC 15. (Closes: #1096439)
+
+ -- Adrian Bunk <bunk@debian.org>  Sat, 20 Sep 2025 20:34:16 +0300
+
 clamsmtp (1.10-18) unstable; urgency=medium
 
   * Use mktemp in postist (Closes: #992454).
diff -Nru clamsmtp-1.10/debian/patches/gcc-15.patch clamsmtp-1.10/debian/patches/gcc-15.patch
--- clamsmtp-1.10/debian/patches/gcc-15.patch	1970-01-01 02:00:00.000000000 +0200
+++ clamsmtp-1.10/debian/patches/gcc-15.patch	2025-09-20 20:34:16.000000000 +0300
@@ -0,0 +1,24 @@
+Description: Fix FTBFS with GCC 15
+Author: Adrian Bunk <bunk@debian.org>
+Bug-Debian: https://bugs.debian.org/1096439
+
+--- clamsmtp-1.10.orig/common/smtppass.c
++++ clamsmtp-1.10/common/smtppass.c
+@@ -246,7 +246,7 @@ void sp_init(const char* name)
+ int sp_run(const char* configfile, const char* pidfile, int dbg_level)
+ {
+     int sock;
+-    int true = 1;
++    int on = 1;
+     
+     ASSERT(configfile);
+     ASSERT(g_state.name);
+@@ -316,7 +316,7 @@ int sp_run(const char* configfile, const
+     }
+ 
+     fcntl(sock, F_SETFD, fcntl(sock, F_GETFD, 0) | FD_CLOEXEC);    
+-    setsockopt(sock, SOL_SOCKET, SO_REUSEADDR, (void *)&true, sizeof(true));
++    setsockopt(sock, SOL_SOCKET, SO_REUSEADDR, (void *)&on, sizeof(on));
+     
+     /* Unlink the socket file if it exists */
+     if(SANY_TYPE(g_state.listenaddr) == AF_UNIX)
diff -Nru clamsmtp-1.10/debian/patches/series clamsmtp-1.10/debian/patches/series
--- clamsmtp-1.10/debian/patches/series	2024-07-04 00:26:51.000000000 +0300
+++ clamsmtp-1.10/debian/patches/series	2025-09-20 20:34:16.000000000 +0300
@@ -6,3 +6,4 @@
 sock_any-Use-socklen_t-for-namelen-in-struct-sockadd.patch
 spio-Don-t-write-to-non-allocate-memory.patch
 smtppass-Correct-strncat-invocation.patch
+gcc-15.patch
