$NetBSD: patch-ai,v 1.10 2013/01/07 21:55:30 ryoon Exp $ --- mozilla/dbm/src/mktemp.c.orig 2012-11-18 10:19:33.000000000 +0000 +++ mozilla/dbm/src/mktemp.c @@ -92,7 +92,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;