diff --git a/blackbox.spec b/blackbox.spec index 51cf5cf..061818e 100644 --- a/blackbox.spec +++ b/blackbox.spec @@ -7,10 +7,7 @@ URL: https://github.com/bbidulock/blackboxwm Source0: https://github.com/bbidulock/blackboxwm/releases/download/%{version}/%{name}-%{version}.tar.lz Source1: blackbox.desktop Source2: blackbox.session -# Fix build with GCC 12 (missing include) Patch0: d3481ee7b7d104ef53ead4d35b9a9254c64bb87a.patch -# Toolbar.cc: fix build for systems where time_t != long -Patch1: d45570b2317ff8f20642fbda5aa07e8f43b254b0.patch BuildRequires: automake BuildRequires: autoconf BuildRequires: gcc-c++ diff --git a/d45570b2317ff8f20642fbda5aa07e8f43b254b0.patch b/d45570b2317ff8f20642fbda5aa07e8f43b254b0.patch deleted file mode 100644 index c5d2b69..0000000 --- a/d45570b2317ff8f20642fbda5aa07e8f43b254b0.patch +++ /dev/null @@ -1,24 +0,0 @@ -From d45570b2317ff8f20642fbda5aa07e8f43b254b0 Mon Sep 17 00:00:00 2001 -From: Andrii Batyiev -Date: Thu, 22 Feb 2024 01:57:55 +0000 -Subject: [PATCH] Toolbar.cc: fix build for systems where time_t != long - ---- - src/Toolbar.cc | 4 ++-- - 1 file changed, 2 insertions(+), 2 deletions(-) - -diff --git a/src/Toolbar.cc b/src/Toolbar.cc -index 8ccad201..fc19f346 100644 ---- a/src/Toolbar.cc -+++ b/src/Toolbar.cc -@@ -45,8 +45,8 @@ long nextTimeout(int resolution) - { - timeval now; - gettimeofday(&now, 0); -- return (std::max(1000l, ((((resolution - (now.tv_sec % resolution)) * 1000l)) -- - (now.tv_usec / 1000l)))); -+ return (std::max(1000l, ((((resolution - (now.tv_sec % resolution)) * 1000l)) -+ - (now.tv_usec / 1000l)))); - } - -