From 0d6d92c707828695466f908f7b9674d58cc72e4e Mon Sep 17 00:00:00 2001 From: Ian Lance Taylor Date: Wed, 19 Aug 1992 17:26:47 +0000 Subject: [PATCH] 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 . xm-rs6000.h: include to define fd_set for on RS/6000. --- gdb/ChangeLog | 7 +++++++ gdb/remote-vx.c | 2 ++ gdb/xm-rs6000.h | 2 ++ 3 files changed, 11 insertions(+) diff --git a/gdb/ChangeLog b/gdb/ChangeLog index a5ba2e9b7d6..b7eb91f1fcf 100644 --- a/gdb/ChangeLog +++ b/gdb/ChangeLog @@ -1,3 +1,10 @@ +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 . + xm-rs6000.h: include to define fd_set for + on RS/6000. + Tue Aug 18 14:48:24 1992 Ian Lance Taylor (ian@cygnus.com) * Makefile.in: added FLAGS_TO_PASS variable, and passed it to diff --git a/gdb/remote-vx.c b/gdb/remote-vx.c index a47ed35c88d..3ba3b88c680 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 #include #include +#define malloc bogon_malloc /* Sun claims "char *malloc()" not void * */ #define free bogon_free /* Sun claims "int free()" not void */ #include +#undef malloc #undef free #include /* UTek's doesn't #incl this */ #include diff --git a/gdb/xm-rs6000.h b/gdb/xm-rs6000.h index 61627ec2504..9c093410dcb 100644 --- a/gdb/xm-rs6000.h +++ b/gdb/xm-rs6000.h @@ -18,6 +18,8 @@ You should have received a copy of the GNU General Public License along with this program; if not, write to the Free Software Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA. */ +#include + /* Big end is at the low address */ #define HOST_BYTE_ORDER BIG_ENDIAN -- 2.30.2