summaryrefslogtreecommitdiff
path: root/openbsd-compat
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
parent607aede26c4193bf1bc5063698ea9a36cbd990e3 (diff)
- (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')
-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 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
58int 58int
59binary_open(const char *filename, int flags, ...) 59binary_open(const char *filename, int flags, ...)
60{ 60{