From 95f2d25323e3233a675df759f23b261fa4ea08ea Mon Sep 17 00:00:00 2001 From: Jim Kingdon Date: Thu, 1 Jul 1993 01:10:22 +0000 Subject: * config/vax/xm-vaxult2.h: Define FD_SET and FD_ZERO. --- gdb/config/vax/xm-vaxult2.h | 5 +++++ 1 file changed, 5 insertions(+) (limited to 'gdb/config/vax') 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)) -- cgit v1.1