diff options
Diffstat (limited to 'openbsd-compat/bsd-cygwin_util.c')
-rw-r--r-- | openbsd-compat/bsd-cygwin_util.c | 14 |
1 files changed, 7 insertions, 7 deletions
diff --git a/openbsd-compat/bsd-cygwin_util.c b/openbsd-compat/bsd-cygwin_util.c index 4d31ef3b5..dbf8176b6 100644 --- a/openbsd-compat/bsd-cygwin_util.c +++ b/openbsd-compat/bsd-cygwin_util.c | |||
@@ -31,6 +31,13 @@ | |||
31 | 31 | ||
32 | #ifdef HAVE_CYGWIN | 32 | #ifdef HAVE_CYGWIN |
33 | 33 | ||
34 | #if defined(open) && open == binary_open | ||
35 | # undef open | ||
36 | #endif | ||
37 | #if defined(pipe) && open == binary_pipe | ||
38 | # undef pipe | ||
39 | #endif | ||
40 | |||
34 | #include <sys/types.h> | 41 | #include <sys/types.h> |
35 | #include <sys/stat.h> | 42 | #include <sys/stat.h> |
36 | #include <sys/utsname.h> | 43 | #include <sys/utsname.h> |
@@ -48,13 +55,6 @@ | |||
48 | #define ntsec_off(c) ((c) && strstr((c),"nontsec")) | 55 | #define ntsec_off(c) ((c) && strstr((c),"nontsec")) |
49 | #define ntea_on(c) ((c) && strstr((c),"ntea") && !strstr((c),"nontea")) | 56 | #define ntea_on(c) ((c) && strstr((c),"ntea") && !strstr((c),"nontea")) |
50 | 57 | ||
51 | #if defined(open) && open == binary_open | ||
52 | # undef open | ||
53 | #endif | ||
54 | #if defined(pipe) && open == binary_pipe | ||
55 | # undef pipe | ||
56 | #endif | ||
57 | |||
58 | int | 58 | int |
59 | binary_open(const char *filename, int flags, ...) | 59 | binary_open(const char *filename, int flags, ...) |
60 | { | 60 | { |