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

Darren Tucker dtucker at zip.com.au
Mon Aug 4 11:44:43 EST 2003


Ben Lindstrom wrote:
> [..]
> +# 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 =)

Good point, doing that works too.  Did you really mean a new
"port-cygwin.h" or the existing "bsd-cygwin_util.h"?

The first "#ifdef CYGWIN" block in session.c could go too.

-- 
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