summaryrefslogtreecommitdiffstats
path: root/compat.h
diff options
context:
space:
mode:
authorNicholas Marriott <nicholas.marriott@gmail.com>2013-07-12 22:21:42 +0100
committerNicholas Marriott <nicholas.marriott@gmail.com>2013-07-12 22:21:42 +0100
commite8567098a4eaa81306effeaef430d9d74f603f7a (patch)
treefa21f9295cf88217e055b4029e31befb413a7820 /compat.h
parentbdea2f9eda1abc8f4a6c423af62ef7538b2ad249 (diff)
Add support for Cgywin, apparently it is enough just to open the tty again in
the server and fd passing is not necessary. Needs some ifdefs unfortunately but no way around that and some of them can go next time we're willing to do a protocol bump. Patch from J Raynor jxraynor at gmail dot com.
Diffstat (limited to 'compat.h')
-rw-r--r--compat.h5
1 files changed, 5 insertions, 0 deletions
diff --git a/compat.h b/compat.h
index d3973797..b84ff400 100644
--- a/compat.h
+++ b/compat.h
@@ -30,6 +30,10 @@
#define __packed __attribute__ ((__packed__))
#endif
+#ifndef ECHOPRT
+#define ECHOPRT 0
+#endif
+
#ifndef HAVE_BSD_TYPES
typedef uint8_t u_int8_t;
typedef uint16_t u_int16_t;
@@ -210,6 +214,7 @@ int daemon(int, int);
#ifndef HAVE_B64_NTOP
/* b64_ntop.c */
+#undef b64_ntop /* for Cygwin */
int b64_ntop(const char *, size_t, char *, size_t);
#endif