1 $NetBSD: patch-ae,v 1.5 2010/06/15 04:18:04 dholland Exp $
3 - Include fixes for modern Unix.
4 - Suppress mktemp() warning on NetBSD; callers use O_EXCL.
6 Upstream: as far as I know not actively maintained upstream.
8 --- unixpk.c.orig 2003-07-21 22:50:41.000000000 +0200
11 * OUT OF OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS
24 #define MAXADDRESS 100
26 -extern char *getenv();
32 @@ -164,7 +169,11 @@ int main(int argc, char **argv)
33 strcpy(fnamebuf, getenv("TMPDIR"));
36 - strcpy(fnamebuf, "/usr/tmp");
37 +#if defined(P_tmpdir)
38 + strcpy(fnamebuf, P_tmpdir);
40 + strcpy(fnamebuf, "/var/tmp");
43 strcat(fnamebuf, "/mpackXXXXXX");