You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
gentoo-overlay/x11-misc/piedock/files/piedock-1.6.9-gcc12-time.patch

32 lines
970 B

This file contains ambiguous Unicode characters!

This file contains ambiguous Unicode characters that may be confused with others in your current locale. If your use case is intentional and legitimate, you can safely ignore this warning. Use the Escape button to highlight these characters.

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;