From fea94c8366d0042fd6587c98ada497f24a7a5abd Mon Sep 17 00:00:00 2001 From: dbn Date: Mon, 29 Jan 2018 18:44:38 +0000 Subject: 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 --- .../files/patch-libs_oxygenhelper.cpp | 11 +++++++++++ 1 file changed, 11 insertions(+) create mode 100644 x11-themes/kde4-style-oxygen-transparent/files/patch-libs_oxygenhelper.cpp (limited to 'x11-themes/kde4-style-oxygen-transparent') 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; + + } -- cgit