xm-sysv4.h: Provide definitions/prototypes for host environment
functions for which no definitions or prototypes are provided in any currently included gdb or host environment header files. For SVR4, this currently includes malloc and realloc, which cannot be portably prototyped in any gdb include file.
This commit is contained in:
parent
961815e432
commit
4b8333deca
2 changed files with 67 additions and 0 deletions
|
@ -65,3 +65,18 @@ Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA. */
|
|||
/* Use setpgid(0,0) to run inferior in a separate process group */
|
||||
|
||||
#define NEED_POSIX_SETPGID
|
||||
|
||||
/* Declare the return types (or supply prototypes for) functions which
|
||||
do not end up being defined by any of the currently included system
|
||||
header files, and which cannot be defined in any common file since a
|
||||
single definition is known to cause portability problems due to
|
||||
conflicts with definitions on other systems.
|
||||
FIXME: This may only be a temporary solution (fnf) */
|
||||
|
||||
#ifdef __STDC__
|
||||
extern void *malloc(size_t);
|
||||
extern void *realloc(void *, size_t);
|
||||
#else
|
||||
extern char *malloc();
|
||||
extern char *realloc();
|
||||
#endif
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue