Compare commits

..

No commits in common. "rawhide" and "f41" have entirely different histories.

2 changed files with 0 additions and 27 deletions

View file

@ -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 <time.h> include)
Patch0: d3481ee7b7d104ef53ead4d35b9a9254c64bb87a.patch
# Toolbar.cc: fix build for systems where time_t != long
Patch1: d45570b2317ff8f20642fbda5aa07e8f43b254b0.patch
BuildRequires: automake
BuildRequires: autoconf
BuildRequires: gcc-c++

View file

@ -1,24 +0,0 @@
From d45570b2317ff8f20642fbda5aa07e8f43b254b0 Mon Sep 17 00:00:00 2001
From: Andrii Batyiev <batyiev@gmail.com>
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<long>(1000l, ((((resolution - (now.tv_sec % resolution)) * 1000l))
+ - (now.tv_usec / 1000l))));
}