blob: 12efac3e3c6e6413b8ab38ae2d564840cd66b42a (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
|
$NetBSD: patch-ai,v 1.1 2013/01/10 16:17:10 ryoon Exp $
--- dbm/src/mktemp.c.orig 2012-08-24 22:55:25.000000000 +0000
+++ 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;
|