$NetBSD: patch-af,v 1.6 2004/11/27 14:19:16 magick Exp $ --- tvsim/tvsim_main.c.orig 2004-08-15 21:07:25.000000000 +0200 +++ tvsim/tvsim_main.c @@ -64,9 +64,13 @@ #include "tvsim/tvsim_version.h" #if defined(__FreeBSD__) || defined(__NetBSD__) +#if defined(__FreeBSD__) #include #endif - +#if defined(__NetBSD__) +#include +#endif +#endif // prior to 8.4 there's a SEGV when evaluating const scripts (Tcl tries to modify the string) #if (TCL_MAJOR_VERSION > 8) || ((TCL_MAJOR_VERSION == 8) && (TCL_MINOR_VERSION >= 4)) # define TCL_EVAL_CONST(INTERP, SCRIPT) Tcl_EvalEx(INTERP, SCRIPT, -1, TCL_EVAL_GLOBAL)