aboutsummaryrefslogtreecommitdiff
path: root/gdb
diff options
context:
space:
mode:
authorJim Kingdon <jkingdon@engr.sgi.com>1993-07-01 01:10:22 +0000
committerJim Kingdon <jkingdon@engr.sgi.com>1993-07-01 01:10:22 +0000
commit95f2d25323e3233a675df759f23b261fa4ea08ea (patch)
tree91145ff2657bc58c63c8d8bde301feaccdc9991e /gdb
parent907a9cabb8760d132fc5649ca827b5b05678c0b0 (diff)
downloadgdb-95f2d25323e3233a675df759f23b261fa4ea08ea.zip
gdb-95f2d25323e3233a675df759f23b261fa4ea08ea.tar.gz
gdb-95f2d25323e3233a675df759f23b261fa4ea08ea.tar.bz2
* config/vax/xm-vaxult2.h: Define FD_SET and FD_ZERO.
Diffstat (limited to 'gdb')
-rw-r--r--gdb/ChangeLog4
-rw-r--r--gdb/config/vax/xm-vaxult2.h5
2 files changed, 9 insertions, 0 deletions
diff --git a/gdb/ChangeLog b/gdb/ChangeLog
index 3b44753..ae2ff85 100644
--- a/gdb/ChangeLog
+++ b/gdb/ChangeLog
@@ -1,3 +1,7 @@
+Wed Jun 30 20:06:46 1993 Jim Kingdon (kingdon@lioth.cygnus.com)
+
+ * config/vax/xm-vaxult2.h: Define FD_SET and FD_ZERO.
+
Tue Jun 29 11:02:58 1993 Jim Kingdon (kingdon@lioth.cygnus.com)
* inftarg.c: Remove unused include of terminal.h.
diff --git a/gdb/config/vax/xm-vaxult2.h b/gdb/config/vax/xm-vaxult2.h
index 5bbed5b..f3e2550 100644
--- a/gdb/config/vax/xm-vaxult2.h
+++ b/gdb/config/vax/xm-vaxult2.h
@@ -5,3 +5,8 @@ extern char *strdup();
#define MEM_FNS_DECLARED
#define NO_PTRACE_H
+
+/* Old versions of ultrix have fd_set but not the FD_* macros. */
+
+#define FD_SET(bit,fdsetp) ((fdsetp)->fds_bits[(n) / 32] |= (1 << ((n) % 32)))
+#define FD_ZERO(fdsetp) memset (fdsetp, 0, sizeof (*fdsetp))