diff options
Diffstat (limited to 'wm/fvwm/patches/patch-ac')
-rw-r--r-- | wm/fvwm/patches/patch-ac | 20 |
1 files changed, 20 insertions, 0 deletions
diff --git a/wm/fvwm/patches/patch-ac b/wm/fvwm/patches/patch-ac new file mode 100644 index 00000000000..1bcb1bc9adb --- /dev/null +++ b/wm/fvwm/patches/patch-ac @@ -0,0 +1,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; |