aboutsummaryrefslogtreecommitdiff
path: root/gdb/rdi-share
diff options
context:
space:
mode:
authorJim Ingham <jingham@apple.com>1999-01-28 03:50:17 +0000
committerJim Ingham <jingham@apple.com>1999-01-28 03:50:17 +0000
commitc98fe0c11974772749686145f3172dc8c9004909 (patch)
treeb6b38dae1565e217e00060554dd6ea1f5d4cfee6 /gdb/rdi-share
parent988e60c43b3af56544d2181a5e3146a7787cf7bc (diff)
downloadgdb-c98fe0c11974772749686145f3172dc8c9004909.zip
gdb-c98fe0c11974772749686145f3172dc8c9004909.tar.gz
gdb-c98fe0c11974772749686145f3172dc8c9004909.tar.bz2
This is the merge of the Itcl3.0 gdbtk development branch into the
trunk. To build it, you will have to do update -dP in the itcl directory, and update tcl, tk, tix and libgui as well.
Diffstat (limited to 'gdb/rdi-share')
-rw-r--r--gdb/rdi-share/host.h2
-rw-r--r--gdb/rdi-share/hostchan.c2
-rw-r--r--gdb/rdi-share/hostchan.h2
-rw-r--r--gdb/rdi-share/serdrv.c2
-rw-r--r--gdb/rdi-share/serpardr.c2
-rw-r--r--gdb/rdi-share/unixcomm.c6
6 files changed, 8 insertions, 8 deletions
diff --git a/gdb/rdi-share/host.h b/gdb/rdi-share/host.h
index 4a431fa..4dffa84 100644
--- a/gdb/rdi-share/host.h
+++ b/gdb/rdi-share/host.h
@@ -51,7 +51,7 @@
#endif
#if defined(_WIN32)
# define COMPILING_ON_WIN32 1
-# if !defined(__CYGWIN__)
+# if !defined(__CYGWIN32__)
# define COMPILING_ON_WINDOWS 1
# endif
#endif
diff --git a/gdb/rdi-share/hostchan.c b/gdb/rdi-share/hostchan.c
index b1ead66..8e41da4 100644
--- a/gdb/rdi-share/hostchan.c
+++ b/gdb/rdi-share/hostchan.c
@@ -546,7 +546,7 @@ static unsigned long tv_diff(const struct timeval *time_now,
- ((time_was->tv_sec * 1000000) + time_was->tv_usec) );
}
-#if !defined(__unix) && !defined(__CYGWIN__)
+#if !defined(__unix) && !defined(__CYGWIN32__)
static void gettimeofday( struct timeval *time_now, void *dummy )
{
time_t t = clock();
diff --git a/gdb/rdi-share/hostchan.h b/gdb/rdi-share/hostchan.h
index 5706fdc..44563a6 100644
--- a/gdb/rdi-share/hostchan.h
+++ b/gdb/rdi-share/hostchan.h
@@ -24,7 +24,7 @@
#endif
/* struct timeval */
-#if defined(__unix) || defined(__CYGWIN__)
+#if defined(__unix) || defined(__CYGWIN32__)
# include <sys/time.h>
#else
# include "winsock.h"
diff --git a/gdb/rdi-share/serdrv.c b/gdb/rdi-share/serdrv.c
index 7ce6d24..43fd5a0 100644
--- a/gdb/rdi-share/serdrv.c
+++ b/gdb/rdi-share/serdrv.c
@@ -243,7 +243,7 @@ static int SerialOpen(const char *name, const char *arg)
serial_reset();
-#if defined(__unix) || defined(__CYGWIN__)
+#if defined(__unix) || defined(__CYGWIN32__)
Unix_ioctlNonBlocking();
#endif
diff --git a/gdb/rdi-share/serpardr.c b/gdb/rdi-share/serpardr.c
index fad0548..604d048 100644
--- a/gdb/rdi-share/serpardr.c
+++ b/gdb/rdi-share/serpardr.c
@@ -278,7 +278,7 @@ static int SerparOpen(const char *name, const char *arg)
serpar_reset();
-#if defined(__unix) || defined(__CYGWIN__)
+#if defined(__unix) || defined(__CYGWIN32__)
Unix_ioctlNonBlocking();
#endif
diff --git a/gdb/rdi-share/unixcomm.c b/gdb/rdi-share/unixcomm.c
index df8e28f..7c2183d 100644
--- a/gdb/rdi-share/unixcomm.c
+++ b/gdb/rdi-share/unixcomm.c
@@ -97,7 +97,7 @@
#define SERIAL_PREFIX "/dev/tty"
-#if defined(_WIN32) || defined (__CYGWIN__)
+#if defined(_WIN32) || defined (__CYGWIN32__)
#define SERPORT1 "com1"
#define SERPORT2 "com2"
#define PARPORT1 "lpt1"
@@ -241,7 +241,7 @@ extern int Unix_IsSerialInUse(void)
extern int Unix_OpenSerial(const char *name)
{
-#if defined(BSD) || defined(__CYGWIN__)
+#if defined(BSD) || defined(__CYGWIN32__)
serpfd = open(name, O_RDWR);
#else
serpfd = open(name, O_RDWR | O_NONBLOCK);
@@ -305,7 +305,7 @@ extern void Unix_ResetSerial(void)
struct termios terminfo;
tcgetattr(serpfd, &terminfo);
-#ifdef __CYGWIN__
+#ifdef __CYGWIN32__
/* Expedient, but it works. */
terminfo.c_iflag = 0;
terminfo.c_oflag = 0;