summaryrefslogtreecommitdiff
path: root/wm/fvwm/patches/patch-ac
blob: 1bcb1bc9adb1b3a0b1e2b198dc044953e807ea8e (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
$NetBSD: patch-ac,v 1.1.1.1 2006/07/02 09:21:57 martti Exp $

--- libs/Picture.c.orig	Sat Jul 31 02:18:29 2004
+++ libs/Picture.c	Sat Jul 31 02:27:44 2004
@@ -75,7 +75,15 @@
 Bool Pdefault;
 Visual *Pvisual;
 static Visual *FvwmVisual;
+#ifdef __APPLE__
+/* The Apple toolchain has some quirks with common symbols in archives
+ * which makes it fail to pull in a file into a binary if only common
+ * symbols are needed from that file.  Work around this by initializing
+ * one of the variables. */
+Colormap Pcmap = {0};
+#else
 Colormap Pcmap;
+#endif
 static Colormap FvwmCmap;
 unsigned int Pdepth;
 static unsigned int FvwmDepth;