$NetBSD: patch-ai,v 1.3 2007/01/20 18:55:09 wiz Exp $ --- mozilla/dbm/src/mktemp.c.orig 2003-01-20 23:13:37.000000000 +0000 +++ mozilla/dbm/src/mktemp.c @@ -98,7 +98,7 @@ mktemp(char *path) static int _gettemp(char *path, register int *doopen, int extraFlags) { -#if !defined(_WINDOWS) || defined(_WIN32) +#if (!defined(_WINDOWS) || defined(_WIN32)) && !defined(errno) extern int errno; #endif register char *start, *trv;