[PATCH] Fix minor breakage on Cygwin: auth-passwd.c and session.c

Ben Lindstrom mouring at etoh.eviladmin.org
Mon Aug 4 04:35:13 EST 2003


[..]
+# ifdef HAVE_CYGWIN
+#  undef ERROR
+#  include <windows.h>
+#  include <sys/cygwin.h>
+#  define is_winnt       (GetVersion() < 0x80000000)
+# endif

There is enough of this junk laying around in different files it really
should be put in an openbsd-compat/port-cygwin.h =)

- Ven

On Sun, 3 Aug 2003, Darren Tucker wrote:

> Hi All.
> 	I tried building -current on Cygwin but got a couple of minor errors.
> The first is in auth-passwd.c where it appears Ben got a bit
> over-enthusiastic cleaning up :-).  The patch restores the relevant
> "#ifdef HAVE_CYGWIN" fragment.
>
> 	The second is in the send-break code in session.c, which won't compile
> because Cygwin apparently doesn't have TIOCSBRK and TIOCCBRK ioctls.  With
> the patch session_break_req just returns 0 if TIOCSBRK and TIOCCBRK are
> not defined (which I think is the right thing to do, but I'm not sure).
>
> 	If either of these are wrong please let me know.
>
> --
> Darren Tucker (dtucker at zip.com.au)
> GPG key 8FF4FA69 / D9A3 86E9 7EEE AF4B B2D4  37C9 C982 80C7 8FF4 FA69
>     Good judgement comes with experience. Unfortunately, the experience
> usually comes from bad judgement.




More information about the openssh-unix-dev mailing list