diff options
author | 2022-06-12 11:02:49 +0100 | |
---|---|---|
committer | 2022-06-12 11:36:24 +0100 | |
commit | 8b81d328595e1d60c315490548f9b9b2cbac8dc0 (patch) | |
tree | 989670d0ca0dc1644f0c88a8a04cfdef5b891e90 /x11-misc/piedock/files | |
parent | xfce-extra/tumbler: Bump to 4.17.1 (diff) | |
download | gentoo-8b81d328595e1d60c315490548f9b9b2cbac8dc0.tar.gz gentoo-8b81d328595e1d60c315490548f9b9b2cbac8dc0.tar.bz2 gentoo-8b81d328595e1d60c315490548f9b9b2cbac8dc0.zip |
x11-misc/piedock: fix build with GCC 12
Closes: https://bugs.gentoo.org/851516
Signed-off-by: Sam James <sam@gentoo.org>
Diffstat (limited to 'x11-misc/piedock/files')
-rw-r--r-- | x11-misc/piedock/files/piedock-1.6.9-gcc12-time.patch | 31 |
1 files changed, 31 insertions, 0 deletions
diff --git a/x11-misc/piedock/files/piedock-1.6.9-gcc12-time.patch b/x11-misc/piedock/files/piedock-1.6.9-gcc12-time.patch new file mode 100644 index 000000000000..5b8a2ea9feb9 --- /dev/null +++ b/x11-misc/piedock/files/piedock-1.6.9-gcc12-time.patch @@ -0,0 +1,31 @@ +https://github.com/markusfisch/PieDock/pull/19 + +From c57d9fad9726086dafbc05abb243c14dcd1bab23 Mon Sep 17 00:00:00 2001 +From: Sam James <sam@gentoo.org> +Date: Sun, 12 Jun 2022 11:08:19 +0100 +Subject: [PATCH] Fix build with GCC 12 (missing <time.h> include) +MIME-Version: 1.0 +Content-Type: text/plain; charset=UTF-8 +Content-Transfer-Encoding: 8bit + +Fixes the following build failure w/ GCC 12: +``` +WindowManager.cpp: In static member function ‘static void PieDock::WindowManager::activate(Display*, Window)’: +WindowManager.cpp:83:29: error: ‘time’ was not declared in this scope; did you mean ‘Time’? + 83 | for (time_t start = time(0) + 2; + | ^~~~ + | Time +``` + +Bug: https://bugs.gentoo.org/851516 +--- a/src/WindowManager.cpp ++++ b/src/WindowManager.cpp +@@ -10,6 +10,7 @@ + + #include <stdint.h> + #include <string.h> ++#include <time.h> + #include <unistd.h> + + using namespace PieDock; + |