]> andersk Git - openssh.git/blobdiff - openbsd-compat/bsd-cygwin_util.c
- (djm) [openbsd-compat/rresvport.c] Add unistd.h for missing close()
[openssh.git] / openbsd-compat / bsd-cygwin_util.c
index 4d31ef3b5017b4a22dd4a31aac23ecb3dcc1be15..dbf8176b6225f12beb576f1c6feeebd72137447c 100644 (file)
 
 #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>
 #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, ...)
 {
This page took 0.035234 seconds and 4 git commands to generate.