summaryrefslogtreecommitdiffstats
path: root/bsd-mktemp.c
diff options
context:
space:
mode:
Diffstat (limited to 'bsd-mktemp.c')
-rw-r--r--bsd-mktemp.c5
1 files changed, 5 insertions, 0 deletions
diff --git a/bsd-mktemp.c b/bsd-mktemp.c
index e8ffd021..9ed1bc80 100644
--- a/bsd-mktemp.c
+++ b/bsd-mktemp.c
@@ -42,6 +42,11 @@
static char rcsid[] = "$OpenBSD: mktemp.c,v 1.13 1998/06/30 23:03:13 deraadt Exp $";
#endif /* LIBC_SCCS and not lint */
+#ifdef HAVE_CYGWIN
+#define open binary_open
+extern int binary_open();
+#endif
+
static int _gettemp(char *, int *, int, int);
int