summaryrefslogtreecommitdiffstats
path: root/openbsd-compat/bsd-cygwin_util.h
diff options
context:
space:
mode:
authorDarren Tucker <dtucker@zip.com.au>2003-08-07 08:28:16 +0200
committerDarren Tucker <dtucker@zip.com.au>2003-08-07 08:28:16 +0200
commit80649c5fa6af0f6c8122f567c2c01b6aabfef07c (patch)
tree4b2996fa237dac5edc045e65ed195a613c57bfd3 /openbsd-compat/bsd-cygwin_util.h
parent - (dtucker) [openbsd-compat/bsd-cygwin_util.c openbsd-compat/bsd-cygwin_util.h] (diff)
downloadopenssh-80649c5fa6af0f6c8122f567c2c01b6aabfef07c.tar.xz
openssh-80649c5fa6af0f6c8122f567c2c01b6aabfef07c.zip
- (dtucker) [session.c openbsd-compat/bsd-cygwin_util.h] Move Cygwin
specific defines and includes to bsd-cygwin_util.h. Fixes build error too.
Diffstat (limited to 'openbsd-compat/bsd-cygwin_util.h')
-rw-r--r--openbsd-compat/bsd-cygwin_util.h7
1 files changed, 6 insertions, 1 deletions
diff --git a/openbsd-compat/bsd-cygwin_util.h b/openbsd-compat/bsd-cygwin_util.h
index f9149fd17..5ccb0fba2 100644
--- a/openbsd-compat/bsd-cygwin_util.h
+++ b/openbsd-compat/bsd-cygwin_util.h
@@ -1,4 +1,4 @@
-/* $Id: bsd-cygwin_util.h,v 1.9 2003/08/07 06:23:43 dtucker Exp $ */
+/* $Id: bsd-cygwin_util.h,v 1.10 2003/08/07 06:28:16 dtucker Exp $ */
/*
* Copyright (c) 2000, 2001, Corinna Vinschen <vinschen@cygnus.com>
@@ -34,6 +34,11 @@
#ifdef HAVE_CYGWIN
+#undef ERROR
+#define is_winnt (GetVersion() < 0x80000000)
+
+#include <windows.h>
+#include <sys/cygwin.h>
#include <io.h>
int binary_open(const char *, int , ...);