diff options
author | Damien Miller <djm@mindrot.org> | 2001-04-14 00:28:42 +1000 |
---|---|---|
committer | Damien Miller <djm@mindrot.org> | 2001-04-14 00:28:42 +1000 |
commit | 402b3319456c1f0da0822319c3813c68e155726d (patch) | |
tree | b9e1a10032f4f13327ba72e1f2a69e6ceaca776a /openbsd-compat | |
parent | 6e77a538ca63f2ecbab74656839e77084a2db425 (diff) |
- Cygwin sftp/sftp-server binary mode patch from Corinna Vinschen
<vinschen@redhat.com>
Diffstat (limited to 'openbsd-compat')
-rw-r--r-- | openbsd-compat/bsd-cygwin_util.c | 3 | ||||
-rw-r--r-- | openbsd-compat/bsd-cygwin_util.h | 4 |
2 files changed, 4 insertions, 3 deletions
diff --git a/openbsd-compat/bsd-cygwin_util.c b/openbsd-compat/bsd-cygwin_util.c index ea981be50..36f13e3f0 100644 --- a/openbsd-compat/bsd-cygwin_util.c +++ b/openbsd-compat/bsd-cygwin_util.c | |||
@@ -15,12 +15,11 @@ | |||
15 | 15 | ||
16 | #include "includes.h" | 16 | #include "includes.h" |
17 | 17 | ||
18 | RCSID("$Id: bsd-cygwin_util.c,v 1.3 2001/02/18 01:30:56 djm Exp $"); | 18 | RCSID("$Id: bsd-cygwin_util.c,v 1.4 2001/04/13 14:28:42 djm Exp $"); |
19 | 19 | ||
20 | #ifdef HAVE_CYGWIN | 20 | #ifdef HAVE_CYGWIN |
21 | 21 | ||
22 | #include <fcntl.h> | 22 | #include <fcntl.h> |
23 | #include <io.h> | ||
24 | #include <stdlib.h> | 23 | #include <stdlib.h> |
25 | #include <sys/vfs.h> | 24 | #include <sys/vfs.h> |
26 | #include <windows.h> | 25 | #include <windows.h> |
diff --git a/openbsd-compat/bsd-cygwin_util.h b/openbsd-compat/bsd-cygwin_util.h index e2d4b4dae..7879501e0 100644 --- a/openbsd-compat/bsd-cygwin_util.h +++ b/openbsd-compat/bsd-cygwin_util.h | |||
@@ -13,13 +13,15 @@ | |||
13 | * binary mode on Windows systems. | 13 | * binary mode on Windows systems. |
14 | */ | 14 | */ |
15 | 15 | ||
16 | /* $Id: bsd-cygwin_util.h,v 1.3 2001/02/18 01:30:56 djm Exp $ */ | 16 | /* $Id: bsd-cygwin_util.h,v 1.4 2001/04/13 14:28:43 djm Exp $ */ |
17 | 17 | ||
18 | #ifndef _BSD_CYGWIN_UTIL_H | 18 | #ifndef _BSD_CYGWIN_UTIL_H |
19 | #define _BSD_CYGWIN_UTIL_H | 19 | #define _BSD_CYGWIN_UTIL_H |
20 | 20 | ||
21 | #ifdef HAVE_CYGWIN | 21 | #ifdef HAVE_CYGWIN |
22 | 22 | ||
23 | #include <io.h> | ||
24 | |||
23 | int binary_open(const char *filename, int flags, ...); | 25 | int binary_open(const char *filename, int flags, ...); |
24 | int binary_pipe(int fd[2]); | 26 | int binary_pipe(int fd[2]); |
25 | int check_nt_auth(int pwd_authenticated, uid_t uid); | 27 | int check_nt_auth(int pwd_authenticated, uid_t uid); |