$NetBSD: patch-ab,v 1.4 2001/08/20 02:15:37 jlam Exp $ --- unixos.c.orig Thu Feb 16 16:39:50 1995 +++ unixos.c @@ -29,6 +29,7 @@ #include #include #include +#include #include "xmalloc.h" #include "common.h" @@ -89,7 +90,11 @@ strcpy(buf, getenv("TMPDIR")); } else { +#if defined(__FreeBSD__) || defined(__NetBSD__) + strcpy(buf, _PATH_VARTMP); +#else strcpy(buf, "/usr/tmp"); +#endif } strcat(buf, "/m-prts-"); p = getenv("USER");