diff -pruN 0.24-1/debian/changelog 0.24-2/debian/changelog
--- 0.24-1/debian/changelog	2022-06-09 14:37:39.000000000 +0000
+++ 0.24-2/debian/changelog	2022-07-31 16:28:30.000000000 +0000
@@ -1,3 +1,9 @@
+mpdscribble (0.24-2) unstable; urgency=medium
+
+  * Fixed FTBS (porting to gcc12) (Closes: #1016284)
+
+ -- Geoffroy Youri Berret <kaliko@debian.org>  Sun, 31 Jul 2022 18:28:30 +0200
+
 mpdscribble (0.24-1) unstable; urgency=medium
 
   * New upstream release.
diff -pruN 0.24-1/debian/patches/include-ctime-header.patch 0.24-2/debian/patches/include-ctime-header.patch
--- 0.24-1/debian/patches/include-ctime-header.patch	1970-01-01 00:00:00.000000000 +0000
+++ 0.24-2/debian/patches/include-ctime-header.patch	2022-07-31 16:09:19.000000000 +0000
@@ -0,0 +1,18 @@
+Description: Fixed FTBS, porting to GCC 12
+Author: kaliko@debian.org
+Applied-Upstream: https://github.com/mxjeff/mpdscribble/commit/308c1f5f30e891daaea4c340b17a69e735ec333a
+Last-Update: 2022-07-31
+---
+This patch header follows DEP-3: http://dep.debian.net/deps/dep3/
+Index: mpdscribble/src/Log.cxx
+===================================================================
+--- mpdscribble.orig/src/Log.cxx
++++ mpdscribble/src/Log.cxx
+@@ -29,6 +29,7 @@
+ #include <stdio.h>
+ #include <string.h>
+ #include <errno.h>
++#include <time.h>
+ 
+ #ifdef HAVE_SYSLOG
+ #include <syslog.h>
diff -pruN 0.24-1/debian/patches/series 0.24-2/debian/patches/series
--- 0.24-1/debian/patches/series	1970-01-01 00:00:00.000000000 +0000
+++ 0.24-2/debian/patches/series	2022-07-31 15:52:40.000000000 +0000
@@ -0,0 +1 @@
+include-ctime-header.patch
