#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();
+/* If gdb's signal handling changes (due to a "handle" command), then
+ this macro expands to an action to perform to notify other parts of
+ gdb that might care, that signal handling has changed. For hosts using
+ the /proc interface, gdb has more control over which signals cause the
+ inferior to stop and which do not. In some cases, it is desirable to
+ have signals delivered directly to the inferior without involving the
+ debugger at all. */
+
+#ifdef USE_PROC_FS
+#define NOTICE_SIGNAL_HANDLING_CHANGE proc_signal_handling_change()
#endif
+
+/* We have to include these files now, so that GDB will not make
+ competing definitions in defs.h. */
+#include <limits.h>