diff options
Diffstat (limited to 'openbsd-compat/bsd-cygwin_util.h')
-rw-r--r-- | openbsd-compat/bsd-cygwin_util.h | 15 |
1 files changed, 6 insertions, 9 deletions
diff --git a/openbsd-compat/bsd-cygwin_util.h b/openbsd-compat/bsd-cygwin_util.h index 5ccb0fba2..af470bdd8 100644 --- a/openbsd-compat/bsd-cygwin_util.h +++ b/openbsd-compat/bsd-cygwin_util.h | |||
@@ -1,6 +1,8 @@ | |||
1 | /* $Id: bsd-cygwin_util.h,v 1.10 2003/08/07 06:28:16 dtucker Exp $ */ | 1 | /* $Id: bsd-cygwin_util.h,v 1.7 2002/04/15 22:00:52 stevesk Exp $ */ |
2 | 2 | ||
3 | /* | 3 | /* |
4 | * cygwin_util.c | ||
5 | * | ||
4 | * Copyright (c) 2000, 2001, Corinna Vinschen <vinschen@cygnus.com> | 6 | * Copyright (c) 2000, 2001, Corinna Vinschen <vinschen@cygnus.com> |
5 | * | 7 | * |
6 | * Redistribution and use in source and binary forms, with or without | 8 | * Redistribution and use in source and binary forms, with or without |
@@ -34,17 +36,12 @@ | |||
34 | 36 | ||
35 | #ifdef HAVE_CYGWIN | 37 | #ifdef HAVE_CYGWIN |
36 | 38 | ||
37 | #undef ERROR | ||
38 | #define is_winnt (GetVersion() < 0x80000000) | ||
39 | |||
40 | #include <windows.h> | ||
41 | #include <sys/cygwin.h> | ||
42 | #include <io.h> | 39 | #include <io.h> |
43 | 40 | ||
44 | int binary_open(const char *, int , ...); | 41 | int binary_open(const char *filename, int flags, ...); |
45 | int binary_pipe(int fd[2]); | 42 | int binary_pipe(int fd[2]); |
46 | int check_nt_auth(int, struct passwd *); | 43 | int check_nt_auth(int pwd_authenticated, struct passwd *pw); |
47 | int check_ntsec(const char *); | 44 | int check_ntsec(const char *filename); |
48 | void register_9x_service(void); | 45 | void register_9x_service(void); |
49 | 46 | ||
50 | #define open binary_open | 47 | #define open binary_open |