$NetBSD$

--- ../tk/unix/tkXAppInit.c.orig	2006-01-11 21:17:53.000000000 +0000
+++ ../tk/unix/tkXAppInit.c
@@ -27,8 +27,10 @@
  * Even if matherr is not used on this system, there is a dummy version
  * in libtcl.
  */
+#if !defined(__DragonFly__)
 extern int matherr ();
 int (*tclDummyMathPtr)() = matherr;
+#endif
 
 
 /*-----------------------------------------------------------------------------
