Compare commits
6 commits
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
6357207e46 | ||
|
|
accb1d6779 | ||
|
|
bb614a60ac | ||
|
|
ae49c20f63 | ||
|
|
036ee72353 | ||
|
|
77d55f8237 |
2 changed files with 27 additions and 0 deletions
|
|
@ -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++
|
||||
|
|
|
|||
24
d45570b2317ff8f20642fbda5aa07e8f43b254b0.patch
Normal file
24
d45570b2317ff8f20642fbda5aa07e8f43b254b0.patch
Normal 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))));
|
||||
}
|
||||
|
||||
|
||||
Loading…
Add table
Add a link
Reference in a new issue