aboutsummaryrefslogtreecommitdiffstats
path: root/x11-themes/kde4-style-oxygen-transparent
diff options
context:
space:
mode:
authordbn <dbn@FreeBSD.org>2018-01-30 02:44:38 +0800
committerdbn <dbn@FreeBSD.org>2018-01-30 02:44:38 +0800
commitfea94c8366d0042fd6587c98ada497f24a7a5abd (patch)
treef283bca9d62ea5b9bdb5534e780e3d2c24c8f23a /x11-themes/kde4-style-oxygen-transparent
parent2ff90aa743e73e19d15cc41b6ab11a978dc33399 (diff)
downloadfreebsd-ports-gnome-fea94c8366d0042fd6587c98ada497f24a7a5abd.tar.gz
freebsd-ports-gnome-fea94c8366d0042fd6587c98ada497f24a7a5abd.tar.zst
freebsd-ports-gnome-fea94c8366d0042fd6587c98ada497f24a7a5abd.zip
x11-themes/kde4-style-oxygen-transparent: fix compilation with Clang 6
This also fixes the compilation with GCC 7. The error is: error: comparison between pointer and integer ('unsigned char *' and 'XID' (aka 'unsigned long')) Reported by: pkg-fallout
Diffstat (limited to 'x11-themes/kde4-style-oxygen-transparent')
-rw-r--r--x11-themes/kde4-style-oxygen-transparent/files/patch-libs_oxygenhelper.cpp11
1 files changed, 11 insertions, 0 deletions
diff --git a/x11-themes/kde4-style-oxygen-transparent/files/patch-libs_oxygenhelper.cpp b/x11-themes/kde4-style-oxygen-transparent/files/patch-libs_oxygenhelper.cpp
new file mode 100644
index 000000000000..98df4f66035f
--- /dev/null
+++ b/x11-themes/kde4-style-oxygen-transparent/files/patch-libs_oxygenhelper.cpp
@@ -0,0 +1,11 @@
+--- libs/oxygenhelper.cpp.orig 2018-01-29 16:36:56 UTC
++++ libs/oxygenhelper.cpp
+@@ -1117,7 +1117,7 @@ namespace Oxygen
+ &data);
+
+ // finish if no data is found
+- if( data == None || n != 1 ) return false;
++ if( data == NULL || n != 1 ) return false;
+ else return *data;
+
+ }