$NetBSD: patch-as,v 1.2 2002/10/06 16:26:57 he Exp $ --- xvmisc.c.orig Fri Aug 9 17:09:23 2002 +++ xvmisc.c @@ -28,6 +28,8 @@ * int xvbcmp (s1, s2, length) * void xvbzero(s, length) * char *xv_strstr(s1, s2) + * FILE *xv_fopen(str, str) + * void xv_mktemp(str) * void Timer(milliseconds) */ @@ -522,6 +524,10 @@ if (pcdW) XDestroyWindow(theDisp, pcdW); +#ifdef HAVE_PNG + if (pngW) XDestroyWindow(theDisp, pngW); +#endif + /* if NOT using stdcmap for images, free stdcmap */ if (colorMapMode != CM_STDCMAP) { int j; @@ -718,6 +724,10 @@ #ifdef HAVE_TIFF if (tiffW) XDefineCursor(theDisp, tiffW, otherc); #endif + +#ifdef HAVE_PNG + if (pngW) XDefineCursor(theDisp, pngW, otherc); +#endif if (pcdW) XDefineCursor(theDisp, pcdW, otherc); } @@ -1070,6 +1080,16 @@ } +/***************************************************/ +void xv_mktemp(buf, fname) + char *buf, *fname; +{ +#ifndef VMS + sprintf(buf, "%s/%s", tmpdir, fname); +#else + sprintf(buf, "Sys$Disk:[]%s", fname); +#endif +} /*******/