aboutsummaryrefslogtreecommitdiff
path: root/gnu/packages/patches/fluxbox-1.3.7-gcc.patch
diff options
context:
space:
mode:
authorDanny Milosavljevic <dannym@scratchpost.org>2023-06-17 22:20:20 +0200
committerDanny Milosavljevic <dannym@scratchpost.org>2023-08-19 12:40:13 +0200
commit18b6e309cec3a0c9c7401b131e18612914f1fcf9 (patch)
tree6ffd1e7524dec3fa5f2882685af37e5e40733aac /gnu/packages/patches/fluxbox-1.3.7-gcc.patch
parent85dbe6d13f20b884f343032e5d1829cc0ef9000d (diff)
downloadguix-18b6e309cec3a0c9c7401b131e18612914f1fcf9.tar.gz
guix-18b6e309cec3a0c9c7401b131e18612914f1fcf9.zip
gnu: fluxbox: Fix build.
* gnu/packages/patches/fluxbox-1.3.7-gcc.patch: New file. * gnu/local.mk (dist_patch_DATA): Add it. * gnu/packages/wm.scm (fluxbox)[source](patches): Add it.
Diffstat (limited to 'gnu/packages/patches/fluxbox-1.3.7-gcc.patch')
-rw-r--r--gnu/packages/patches/fluxbox-1.3.7-gcc.patch16
1 files changed, 16 insertions, 0 deletions
diff --git a/gnu/packages/patches/fluxbox-1.3.7-gcc.patch b/gnu/packages/patches/fluxbox-1.3.7-gcc.patch
new file mode 100644
index 0000000000..0c805251ac
--- /dev/null
+++ b/gnu/packages/patches/fluxbox-1.3.7-gcc.patch
@@ -0,0 +1,16 @@
+Author: Danny Milosavljevic <dannym@scratchpost.org>
+Date: 2023-06-12
+License: expat
+
+diff -ur orig/fluxbox-1.3.7/util/fluxbox-remote.cc fluxbox-1.3.7/util/fluxbox-remote.cc
+--- orig/fluxbox-1.3.7/util/fluxbox-remote.cc 1970-01-01 01:00:01.000000000 +0100
++++ fluxbox-1.3.7/util/fluxbox-remote.cc 2023-05-01 01:11:52.225547895 +0200
+@@ -73,7 +73,7 @@
+ if (strcmp(cmd, "result") == 0) {
+ XTextProperty text_prop;
+ if (XGetTextProperty(disp, root, &text_prop, atom_result) != 0
+- && text_prop.value > 0
++ && text_prop.value != NULL
+ && text_prop.nitems > 0) {
+
+ printf("%s", text_prop.value);