diff options
author | Damien Miller <djm@mindrot.org> | 2000-09-05 16:13:06 +1100 |
---|---|---|
committer | Damien Miller <djm@mindrot.org> | 2000-09-05 16:13:06 +1100 |
commit | bac2d8aa5e642a70045e713853b13d020b9c5d57 (patch) | |
tree | 98ddc81efce2273b3dfaff03b51242c988d30abf /includes.h | |
parent | 676092fad0b6edca8f1fe731d7c3a000465a9bef (diff) |
- (djm) Merge cygwin support from Corinna Vinschen <vinschen@cygnus.com>
Diffstat (limited to 'includes.h')
-rw-r--r-- | includes.h | 12 |
1 files changed, 12 insertions, 0 deletions
diff --git a/includes.h b/includes.h index 5102c97ad..27569e18f 100644 --- a/includes.h +++ b/includes.h | |||
@@ -29,7 +29,9 @@ static /**/const char *const rcsid[] = { (char *)rcsid, "\100(#)" msg } | |||
29 | #include <sys/wait.h> | 29 | #include <sys/wait.h> |
30 | #include <sys/resource.h> | 30 | #include <sys/resource.h> |
31 | 31 | ||
32 | #ifndef HAVE_CYGWIN | ||
32 | #include <netinet/tcp.h> | 33 | #include <netinet/tcp.h> |
34 | #endif | ||
33 | #include <arpa/inet.h> | 35 | #include <arpa/inet.h> |
34 | #include <netdb.h> | 36 | #include <netdb.h> |
35 | 37 | ||
@@ -46,6 +48,9 @@ static /**/const char *const rcsid[] = { (char *)rcsid, "\100(#)" msg } | |||
46 | #include <grp.h> | 48 | #include <grp.h> |
47 | #include <time.h> | 49 | #include <time.h> |
48 | #include <dirent.h> | 50 | #include <dirent.h> |
51 | #ifdef HAVE_CYGWIN | ||
52 | #include <getopt.h> | ||
53 | #endif | ||
49 | 54 | ||
50 | #ifdef HAVE_BSTRING_H | 55 | #ifdef HAVE_BSTRING_H |
51 | # include <bstring.h> | 56 | # include <bstring.h> |
@@ -110,4 +115,11 @@ static /**/const char *const rcsid[] = { (char *)rcsid, "\100(#)" msg } | |||
110 | */ | 115 | */ |
111 | /* #define USE_PIPES 1 */ | 116 | /* #define USE_PIPES 1 */ |
112 | 117 | ||
118 | #ifdef HAVE_CYGWIN | ||
119 | #define open binary_open | ||
120 | #define pipe binary_pipe | ||
121 | extern int binary_open(); | ||
122 | extern int binary_pipe(); | ||
123 | #endif | ||
124 | |||
113 | #endif /* INCLUDES_H */ | 125 | #endif /* INCLUDES_H */ |