summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
Diffstat (limited to 'x11-wm/metacity/files/metacity-2.4.3-ppc-gcc3.2.diff')
-rw-r--r--x11-wm/metacity/files/metacity-2.4.3-ppc-gcc3.2.diff45
1 files changed, 0 insertions, 45 deletions
diff --git a/x11-wm/metacity/files/metacity-2.4.3-ppc-gcc3.2.diff b/x11-wm/metacity/files/metacity-2.4.3-ppc-gcc3.2.diff
deleted file mode 100644
index cbf49e41c364..000000000000
--- a/x11-wm/metacity/files/metacity-2.4.3-ppc-gcc3.2.diff
+++ /dev/null
@@ -1,45 +0,0 @@
---- src/screen.c.orig 2002-11-03 17:35:17.000000000 -0600
-+++ src/screen.c 2002-11-03 17:36:41.000000000 -0600
-@@ -1552,10 +1552,27 @@
- if (rows <= 0 && cols <= 0)
- cols = num_workspaces;
-
-- if (rows <= 0)
-- rows = num_workspaces / cols + ((num_workspaces % cols) > 0 ? 1 : 0);
-- if (cols <= 0)
-- cols = num_workspaces / rows + ((num_workspaces % rows) > 0 ? 1 : 0);
-+ if (rows <= 0) {
-+ /* fix PPC compile issue
-+ * ICE occurs using embedded macro in calculation, split
-+ * into if statements
-+ */
-+ if ((num_workspaces % cols) > 0) {
-+ rows = num_workspaces / cols + 1;
-+ } else {
-+ rows = num_workspaces / cols;
-+ }
-+ }
-+ if (cols <= 0) {
-+ /* another fix for PPC compile issue */
-+ if ((num_workspaces % rows) > 0) {
-+ cols = num_workspaces / rows + 1;
-+ } else {
-+ cols = num_workspaces / rows;
-+ }
-+ }
-+
-+
-
- /* paranoia */
- if (rows < 1)
-@@ -1563,8 +1580,8 @@
- if (cols < 1)
- cols = 1;
-
-- *r = rows;
-- *c = cols;
-+ r[0] = rows;
-+ c[0] = cols;
- }
-
- static void