Browse Source

fluxbox: fix compile errorwith g++11

Waldemar Brodkorb 1 year ago
parent
commit
8247b35974
2 changed files with 12 additions and 1 deletions
  1. 1 1
      package/fluxbox/Makefile
  2. 11 0
      package/fluxbox/patches/patch-util_fluxbox-remote_cc

+ 1 - 1
package/fluxbox/Makefile

@@ -5,7 +5,7 @@ include $(ADK_TOPDIR)/rules.mk
 
 PKG_NAME:=		fluxbox
 PKG_VERSION:=		1.3.7
-PKG_RELEASE:=		1
+PKG_RELEASE:=		2
 PKG_HASH:=		fc8c75fe94c54ed5a5dd3fd4a752109f8949d6df67a48e5b11a261403c382ec0
 PKG_DESCR:=		window manager featuring tabs and an iconbar
 PKG_SECTION:=		x11/apps

+ 11 - 0
package/fluxbox/patches/patch-util_fluxbox-remote_cc

@@ -0,0 +1,11 @@
+--- fluxbox-1.3.7.orig/util/fluxbox-remote.cc	2015-02-08 11:44:45.377187009 +0100
++++ fluxbox-1.3.7/util/fluxbox-remote.cc	2023-01-13 06:47:39.349301911 +0100
+@@ -73,7 +73,7 @@ int main(int argc, char **argv) {
+     if (strcmp(cmd, "result") == 0) {
+         XTextProperty text_prop;
+         if (XGetTextProperty(disp, root, &text_prop, atom_result) != 0
+-            && text_prop.value > 0
++            && text_prop.value != 0
+             && text_prop.nitems > 0) {
+ 
+             printf("%s", text_prop.value);