summaryrefslogtreecommitdiff
path: root/openbsd-compat/bsd-cygwin_util.c
diff options
context:
space:
mode:
authorDarren Tucker <dtucker@zip.com.au>2006-09-01 19:29:01 +1000
committerDarren Tucker <dtucker@zip.com.au>2006-09-01 19:29:01 +1000
commit0646ca6be81c4f0f619d92a4e5a041b58c79a221 (patch)
treed19d0a16bd4cf8dfc479c7b01f3b8a6d4472cea0 /openbsd-compat/bsd-cygwin_util.c
parent607aede26c4193bf1bc5063698ea9a36cbd990e3 (diff)
downloadopenssh-git-0646ca6be81c4f0f619d92a4e5a041b58c79a221.tar.gz
- (dtucker) [openbsd-compat/bsd-cygwin_util.c] Fix implict declaration
warnings for binary_open and binary_close. Patch from Corinna Vinschen.
Diffstat (limited to 'openbsd-compat/bsd-cygwin_util.c')
-rw-r--r--openbsd-compat/bsd-cygwin_util.c14
1 files changed, 7 insertions, 7 deletions
diff --git a/openbsd-compat/bsd-cygwin_util.c b/openbsd-compat/bsd-cygwin_util.c
index 4d31ef3b..dbf8176b 100644
--- a/openbsd-compat/bsd-cygwin_util.c
+++ b/openbsd-compat/bsd-cygwin_util.c
@@ -31,6 +31,13 @@
#ifdef HAVE_CYGWIN
+#if defined(open) && open == binary_open
+# undef open
+#endif
+#if defined(pipe) && open == binary_pipe
+# undef pipe
+#endif
+
#include <sys/types.h>
#include <sys/stat.h>
#include <sys/utsname.h>
@@ -48,13 +55,6 @@
#define ntsec_off(c) ((c) && strstr((c),"nontsec"))
#define ntea_on(c) ((c) && strstr((c),"ntea") && !strstr((c),"nontea"))
-#if defined(open) && open == binary_open
-# undef open
-#endif
-#if defined(pipe) && open == binary_pipe
-# undef pipe
-#endif
-
int
binary_open(const char *filename, int flags, ...)
{