From: Fred Fish Date: Mon, 11 Sep 1995 23:41:45 +0000 (+0000) Subject: * defs.h: Only include mmalloc.h if NO_MMALLOC is not X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=031c4a7eed4d66297620a9b2d7b695d9e041de50;p=binutils-gdb.git * defs.h: Only include mmalloc.h if NO_MMALLOC is not defined. --- diff --git a/gdb/ChangeLog b/gdb/ChangeLog index 2129a32f61f..7c7f21bc528 100644 --- a/gdb/ChangeLog +++ b/gdb/ChangeLog @@ -1,3 +1,8 @@ +Sun Sep 10 15:36:21 1995 Fred Fish + + * defs.h: Only include mmalloc.h if NO_MMALLOC is not + defined. + Sun Sep 10 10:24:48 1995 Michael Tiemann * tm-ppc-eabi.h (PC_IN_CALL_DUMMY): Redefine this to work with the diff --git a/gdb/defs.h b/gdb/defs.h index b188828c515..dfd63af2f52 100644 --- a/gdb/defs.h +++ b/gdb/defs.h @@ -41,7 +41,9 @@ extern char *strsignal PARAMS ((int)); #include "progress.h" +#ifndef NO_MMALLOC #include "mmalloc.h" +#endif /* For BFD64 and bfd_vma. */ #include "bfd.h" @@ -640,17 +642,29 @@ extern void free (); #endif /* MALLOC_INCOMPATIBLE */ #ifndef WIN32 + +#ifndef strchr extern char *strchr (); +#endif +#ifndef strrchr extern char *strrchr (); +#endif +#ifndef strstr extern char *strstr (); +#endif +#ifndef strtok extern char *strtok (); +#endif +#ifndef strerror extern char *strerror (); #endif +#endif /* !WIN32 */ + /* Various possibilities for alloca. */ #ifndef alloca # ifdef __GNUC__