]> andersk Git - openssh.git/commitdiff
- (dtucker) [session.c openbsd-compat/bsd-cygwin_util.h] Move Cygwin
authordtucker <dtucker>
Thu, 7 Aug 2003 06:28:16 +0000 (06:28 +0000)
committerdtucker <dtucker>
Thu, 7 Aug 2003 06:28:16 +0000 (06:28 +0000)
   specific defines and includes to bsd-cygwin_util.h.  Fixes build error too.

ChangeLog
openbsd-compat/bsd-cygwin_util.h
session.c

index 381a34a3e191c2680f3161c8540218b916f2c6a9..7622c6f64298c231acb480071aee6e53b074f5bf 100644 (file)
--- a/ChangeLog
+++ b/ChangeLog
@@ -8,6 +8,8 @@
    from OpenBSD.
  - (dtucker) [openbsd-compat/bsd-cygwin_util.c openbsd-compat/bsd-cygwin_util.h]
    Remove incorrect filenames from comments (file names are in Id tags).
+ - (dtucker) [session.c openbsd-compat/bsd-cygwin_util.h] Move Cygwin
+   specific defines and includes to bsd-cygwin_util.h.  Fixes build error too.
 
 20030802
  - (dtucker) [monitor.h monitor_wrap.h] Remove excess ident tags.
index 5d460ee4147a3ade644c637fa82c48c32be9061b..a0429ebc6399692bbcdbcbd0b84322e6c1b50976 100644 (file)
 
 #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 , ...);
index 83c2de0b913d10f9fdcdcb6ba3343466ad7164eb..325b1753a0df149ba0fa8ad35d5654c26cddd60b 100644 (file)
--- a/session.c
+++ b/session.c
@@ -58,12 +58,6 @@ RCSID("$OpenBSD: session.c,v 1.159 2003/07/22 13:35:22 markus Exp $");
 #include "session.h"
 #include "monitor_wrap.h"
 
-#ifdef HAVE_CYGWIN
-#include <windows.h>
-#include <sys/cygwin.h>
-#define is_winnt       (GetVersion() < 0x80000000)
-#endif
-
 /* func */
 
 Session *session_new(void);
This page took 0.144444 seconds and 5 git commands to generate.