>Submitter-Id:  current-users
>Originator:    Tod McQuillin
>Organization:  
>Confidential:  no 
>Synopsis:      [PATCH] x11-wm/kdebase-kompmgr: fix build on 4.x
>Severity:      non-critical
>Priority:      low
>Category:      ports 
>Class:         change-request
>Release:       FreeBSD 4.11-STABLE i386
>Environment:
System: FreeBSD plexi.pun-pun.prv 4.11-STABLE FreeBSD 4.11-STABLE #0: Sat May 
21 11:14:44 JST 2005
>Description:
kompmgr.c was using the C++ism of declaring a variable in the middle
of a block.  C (and in particular gcc 2.95) doesn't allow this, so
the build was failing.

Fixed by moving the declaration to the top of the block.

Added file(s):
- files/patch-kwin_kompmgr_kompmgr.c

Port maintainer ([EMAIL PROTECTED]) is cc'd.

Generated with FreeBSD Port Tools 0.63
>How-To-Repeat:
>Fix:

--- kdebase-kompmgr-3.4.1.patch begins here ---
Index: files/patch-kwin_kompmgr_kompmgr.c
===================================================================
RCS file: files/patch-kwin_kompmgr_kompmgr.c
diff -N files/patch-kwin_kompmgr_kompmgr.c
--- /dev/null   1 Jan 1970 00:00:00 -0000
+++ files/patch-kwin_kompmgr_kompmgr.c  5 Jul 2005 02:33:41 -0000
@@ -0,0 +1,19 @@
+--- kwin/kompmgr/kompmgr.c-    Mon May 23 21:14:55 2005
++++ kwin/kompmgr/kompmgr.c     Tue Jul  5 11:25:27 2005
+@@ -1807,6 +1807,7 @@
+ {
+       win                             *new = malloc (sizeof (win));
+       win                             **p;
++      unsigned int                    tmp;
+ 
+       if (!new)
+               return;
+@@ -1867,7 +1868,7 @@
+       new->shadowSize = get_shadow_prop (dpy, new);
+       new->shapable = get_shapable_prop(dpy, new);
+       new->titleHeight = get_titleHeight_prop(dpy, new);
+-        unsigned int tmp = get_dim_prop(dpy, new);
++        tmp = get_dim_prop(dpy, new);
+         new->dimPicture = (tmp < OPAQUE) ? solid_picture (dpy, True, 
(double)tmp/OPAQUE, 0.1, 0.1, 0.1) : None;
+       new->windowType = determine_wintype (dpy, new->id);
+         determine_mode (dpy, new);
--- kdebase-kompmgr-3.4.1.patch ends here ---

_______________________________________________
kde-freebsd mailing list
[email protected]
http://freebsd.kde.org/mailman/listinfo/kde-freebsd

Reply via email to