aboutsummaryrefslogtreecommitdiff
path: root/gdb/rdi-share/hostchan.h
diff options
context:
space:
mode:
Diffstat (limited to 'gdb/rdi-share/hostchan.h')
-rw-r--r--gdb/rdi-share/hostchan.h8
1 files changed, 8 insertions, 0 deletions
diff --git a/gdb/rdi-share/hostchan.h b/gdb/rdi-share/hostchan.h
index 81456b5..5706fdc 100644
--- a/gdb/rdi-share/hostchan.h
+++ b/gdb/rdi-share/hostchan.h
@@ -15,6 +15,14 @@
#ifndef angsd_hostchan_h
#define angsd_hostchan_h
+/* If under Cygwin, provide backwards compatibility with older
+ Cygwin compilers that don't define the current cpp define. */
+#ifdef __CYGWIN32__
+#ifndef __CYGWIN__
+#define __CYGWIN__
+#endif
+#endif
+
/* struct timeval */
#if defined(__unix) || defined(__CYGWIN__)
# include <sys/time.h>