File: add-include-stdint.diff

package info (click to toggle)
herbstluftwm 0.9.5-3.1
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid
  • size: 3,164 kB
  • sloc: cpp: 20,691; python: 10,830; sh: 1,023; ansic: 622; makefile: 98
file content (24 lines) | stat: -rw-r--r-- 797 bytes parent folder | download
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
Origin: upstream, 8ff75588a750704ae06ad59b843eb88138c95653
From: Kostadin <kostadinshishmanov@protonmail.com>
Date: Fri, 14 Mar 2025 17:48:29 +0200
Bug: https://github.com/herbstluftwm/herbstluftwm/issues/1612
Subject: Add #include <stdint.h> to fix building with gcc 15 (#1613)

With gcc 15, the C++ Standard Library no longer includes other headers that were internally used by the library. In herbstluftwm's case the missing header is `<stdint.h>`

Downstream Gentoo bug: https://bugs.gentoo.org/937529

Closes: #1612

---

--- herbstluftwm-0.9.5.orig/src/xconnection.cpp
+++ herbstluftwm-0.9.5/src/xconnection.cpp
@@ -6,6 +6,7 @@
 #include <X11/Xutil.h>
 #include <X11/extensions/Xrender.h>
 #include <fcntl.h>
+#include <stdint.h>
 #include <unistd.h>
 #include <climits>
 #include <cstring>