diff -pruN 2.0.2+dfsg-10/debian/changelog 2.0.2+dfsg-11/debian/changelog
--- 2.0.2+dfsg-10/debian/changelog	2021-08-31 14:15:12.000000000 +0000
+++ 2.0.2+dfsg-11/debian/changelog	2022-08-04 10:03:34.000000000 +0000
@@ -1,3 +1,11 @@
+pirs (2.0.2+dfsg-11) unstable; urgency=medium
+
+  * Standards-Version: 4.6.1 (routine-update)
+  * Fix error: ‘time’ was not declared in this scope
+    Closes: #1016281
+
+ -- Andreas Tille <tille@debian.org>  Thu, 04 Aug 2022 12:03:34 +0200
+
 pirs (2.0.2+dfsg-10) unstable; urgency=medium
 
   * Fix watchfile to detect new versions on github (routine-update)
diff -pruN 2.0.2+dfsg-10/debian/control 2.0.2+dfsg-11/debian/control
--- 2.0.2+dfsg-10/debian/control	2021-08-31 14:15:12.000000000 +0000
+++ 2.0.2+dfsg-11/debian/control	2022-08-04 10:03:34.000000000 +0000
@@ -7,7 +7,7 @@ Build-Depends: debhelper-compat (= 13),
                libboost-dev,
                zlib1g-dev,
                libgzstream-dev
-Standards-Version: 4.6.0
+Standards-Version: 4.6.1
 Vcs-Browser: https://salsa.debian.org/med-team/pirs
 Vcs-Git: https://salsa.debian.org/med-team/pirs.git
 Homepage: https://github.com/galaxy001/pirs
diff -pruN 2.0.2+dfsg-10/debian/patches/gcc-12.patch 2.0.2+dfsg-11/debian/patches/gcc-12.patch
--- 2.0.2+dfsg-10/debian/patches/gcc-12.patch	1970-01-01 00:00:00.000000000 +0000
+++ 2.0.2+dfsg-11/debian/patches/gcc-12.patch	2022-08-04 10:03:34.000000000 +0000
@@ -0,0 +1,15 @@
+Author: Andreas Tille <tille@debian.org>
+Last-Update: Thu, 04 Aug 2022 11:55:24 +0200
+Bug-Debian: https://bugs.debian.org/1016281
+Description: Fix error: ‘time’ was not declared in this scope
+
+--- a/src/pirs/pirs_diploid.cpp
++++ b/src/pirs/pirs_diploid.cpp
+@@ -5,6 +5,7 @@
+ #include <stdlib.h>
+ #include <string>
+ #include <vector>
++#include <ctime>
+ 
+ #include "Random.h"
+ #include "util.h"
diff -pruN 2.0.2+dfsg-10/debian/patches/series 2.0.2+dfsg-11/debian/patches/series
--- 2.0.2+dfsg-10/debian/patches/series	2021-08-31 14:15:12.000000000 +0000
+++ 2.0.2+dfsg-11/debian/patches/series	2022-08-04 10:03:34.000000000 +0000
@@ -2,3 +2,4 @@ use_debian_packaged_libgzstream.patch
 Fix-spelling-of-sse2-option.patch
 do_not_seek_for_arial.ttf.patch
 Remove-mtune-compiler-flag.patch
+gcc-12.patch
