[PATCH] Fix minor breakage on Cygwin: auth-passwd.c and session.c
Ben Lindstrom
mouring at etoh.eviladmin.org
Mon Aug 4 15:32:36 EST 2003
On Mon, 4 Aug 2003, Darren Tucker wrote:
> 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"?
>
Sooner or later bsd-cygwin_util.[ch], bsd-cray.[ch] and bsd-nextstep.[ch]
should be changed to port-cygwin.[ch], port-cray.[ch] and
port-nextstep.[ch] respectively.
However, yes. The code should go to bsd-cygwin_util.h unless there is
some overriding reason not to... Corinna is there a reason we shouldn't
make this change?
- Ben
More information about the openssh-unix-dev
mailing list