diff options
author | Ian Lance Taylor <ian@airs.com> | 1992-08-19 17:26:47 +0000 |
---|---|---|
committer | Ian Lance Taylor <ian@airs.com> | 1992-08-19 17:26:47 +0000 |
commit | 0d6d92c707828695466f908f7b9674d58cc72e4e (patch) | |
tree | 06c5e0e2a328a7fbd010d89eb2b2c2065d287e01 /gdb/remote-vx.c | |
parent | 09952cd9552ace00ab7183be9b3cc5f120a9df5a (diff) | |
download | gdb-0d6d92c707828695466f908f7b9674d58cc72e4e.zip gdb-0d6d92c707828695466f908f7b9674d58cc72e4e.tar.gz gdb-0d6d92c707828695466f908f7b9674d58cc72e4e.tar.bz2 |
Wed Aug 19 10:23:27 1992 Ian Lance Taylor (ian@cygnus.com)
* remote-vx.c: redefine malloc to avoid buggy declaration on
RS/6000 <rpc/types.h>.
xm-rs6000.h: include <sys/select.h> to define fd_set for
<rpc/svc.h> on RS/6000.
Diffstat (limited to 'gdb/remote-vx.c')
-rw-r--r-- | gdb/remote-vx.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/gdb/remote-vx.c b/gdb/remote-vx.c index a47ed35..3ba3b88 100644 --- a/gdb/remote-vx.c +++ b/gdb/remote-vx.c @@ -35,8 +35,10 @@ Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA. */ #include <sys/types.h> #include <sys/time.h> #include <sys/socket.h> +#define malloc bogon_malloc /* Sun claims "char *malloc()" not void * */ #define free bogon_free /* Sun claims "int free()" not void */ #include <rpc/rpc.h> +#undef malloc #undef free #include <sys/time.h> /* UTek's <rpc/rpc.h> doesn't #incl this */ #include <netdb.h> |