summaryrefslogtreecommitdiff
path: root/wm/fvwm2/patches
diff options
context:
space:
mode:
authorkristerw <kristerw@pkgsrc.org>2004-07-31 01:25:33 +0000
committerkristerw <kristerw@pkgsrc.org>2004-07-31 01:25:33 +0000
commit917c6c852b5285bccd258a4295246f3f4b575793 (patch)
tree5a4d3ddd194a943fab17876565ad342f5710f01b /wm/fvwm2/patches
parent53b6d6adf64ee3210f5e8651beec4f6c0d2e4df1 (diff)
downloadpkgsrc-917c6c852b5285bccd258a4295246f3f4b575793.tar.gz
Fix a build problem seen on OS X.
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.
Diffstat (limited to 'wm/fvwm2/patches')
-rw-r--r--wm/fvwm2/patches/patch-ac20
1 files changed, 20 insertions, 0 deletions
diff --git a/wm/fvwm2/patches/patch-ac b/wm/fvwm2/patches/patch-ac
new file mode 100644
index 00000000000..4630118c099
--- /dev/null
+++ b/wm/fvwm2/patches/patch-ac
@@ -0,0 +1,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;