Compare commits

...
Sign in to create a new pull request.

6 commits

Author SHA1 Message Date
Fedora Release Engineering
6357207e46 Rebuilt for https://fedoraproject.org/wiki/Fedora_43_Mass_Rebuild 2025-07-23 17:44:15 +00:00
Fedora Release Engineering
accb1d6779 Rebuilt for https://fedoraproject.org/wiki/Fedora_42_Mass_Rebuild 2025-01-16 12:34:56 +00:00
Filipe Rosset
bb614a60ac Toolbar.cc: fix build for systems where time_t != long 2024-10-20 22:19:05 -03:00
Fedora Release Engineering
ae49c20f63 Rebuilt for https://fedoraproject.org/wiki/Fedora_41_Mass_Rebuild 2024-07-17 18:21:45 +00:00
Fedora Release Engineering
036ee72353 Rebuilt for https://fedoraproject.org/wiki/Fedora_40_Mass_Rebuild 2024-01-23 00:30:19 +00:00
Fedora Release Engineering
77d55f8237 Rebuilt for https://fedoraproject.org/wiki/Fedora_40_Mass_Rebuild 2024-01-19 14:27:51 +00:00
2 changed files with 27 additions and 0 deletions

View file

@ -7,7 +7,10 @@ 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

@ -0,0 +1,24 @@
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))));
}