blob: 4630118c0995b5f7324e1dda9e5383d447f20729 (
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.3 2004/07/31 01:25:33 kristerw 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;
|