pkgsrc-Changes-HG archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

[pkgsrc/trunk]: pkgsrc/x11/slim slim: fix build with clang



details:   https://anonhg.NetBSD.org/pkgsrc/rev/5db8fc0205e1
branches:  trunk
changeset: 308857:5db8fc0205e1
user:      jmcneill <jmcneill%pkgsrc.org@localhost>
date:      Sat Jun 02 16:46:50 2018 +0000

description:
slim: fix build with clang

diffstat:

 x11/slim/distinfo                |   3 ++-
 x11/slim/patches/patch-panel.cpp |  13 +++++++++++++
 2 files changed, 15 insertions(+), 1 deletions(-)

diffs (31 lines):

diff -r 80365bc6456d -r 5db8fc0205e1 x11/slim/distinfo
--- a/x11/slim/distinfo Sat Jun 02 16:40:20 2018 +0000
+++ b/x11/slim/distinfo Sat Jun 02 16:46:50 2018 +0000
@@ -1,8 +1,9 @@
-$NetBSD: distinfo,v 1.2 2018/05/18 15:16:12 youri Exp $
+$NetBSD: distinfo,v 1.3 2018/06/02 16:46:50 jmcneill Exp $
 
 SHA1 (slim-1.3.6.tar.gz) = 9407ea2ee7b2ed649f17a8ddbf1f7b26a7c7b9fb
 RMD160 (slim-1.3.6.tar.gz) = 1bf3269b23275c50b67ada8cb5709e093eb6764f
 SHA512 (slim-1.3.6.tar.gz) = 345b1dee5d6f0c3716dfa7c5c16274adbf18586bdaaa6af4f310e24c5a61f79a297ffac921a5ba545523317e9fe120916df226c36b9c9b49c2ac9c1ca21dee0c
 Size (slim-1.3.6.tar.gz) = 232547 bytes
 SHA1 (patch-CMakeLists.txt) = 27f0222a206465e12f22f78e418b1615f7825cd4
+SHA1 (patch-panel.cpp) = 38ae847eb34f90ee7ca5c23daf515067e5c3b844
 SHA1 (patch-slim.conf) = c85fb8f14e02e602f1dd5a72ffa20de7a34e5a13
diff -r 80365bc6456d -r 5db8fc0205e1 x11/slim/patches/patch-panel.cpp
--- /dev/null   Thu Jan 01 00:00:00 1970 +0000
+++ b/x11/slim/patches/patch-panel.cpp  Sat Jun 02 16:46:50 2018 +0000
@@ -0,0 +1,13 @@
+$NetBSD: patch-panel.cpp,v 1.1 2018/06/02 16:46:50 jmcneill Exp $
+
+--- panel.cpp.orig     2013-10-01 22:38:05.000000000 +0000
++++ panel.cpp
+@@ -48,7 +48,7 @@ Panel::Panel(Display* dpy, int scr, Wind
+               gcm = GCGraphicsExposures;
+               gcv.graphics_exposures = False;
+               WinGC = XCreateGC(Dpy, Win, gcm, &gcv);
+-              if (WinGC < 0) {
++              if ((intptr_t)WinGC < 0) {
+                       cerr << APPNAME
+                               << ": failed to create pixmap\n.";
+                       exit(ERR_EXIT);



Home | Main Index | Thread Index | Old Index