--- plug-ins/twain/tw_mac.c.orig	2010-06-22 21:52:14.000000000 -0700
+++ plug-ins/twain/tw_mac.c	2010-08-02 10:28:16.000000000 -0700
@@ -192,10 +192,12 @@
 
   /* Voodoo magic fix inspired by java_swt launcher */
   /* Without this the icon setting doesn't work about half the time. */
+#ifndef __LP64__
   CGrafPtr p = BeginQDContextForApplicationDockTile();
   EndQDContextForApplicationDockTile(p);
 
   SetApplicationDockTileImage (icon);
+#endif
 }
 
 int
